diff options
Diffstat (limited to 'client/src/app/+login')
-rw-r--r-- | client/src/app/+login/login.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts index e9336172e..351750453 100644 --- a/client/src/app/+login/login.component.ts +++ b/client/src/app/+login/login.component.ts | |||
@@ -3,7 +3,8 @@ import { AfterViewInit, Component, ElementRef, OnInit, ViewChild } from '@angula | |||
3 | import { ActivatedRoute } from '@angular/router' | 3 | import { ActivatedRoute } from '@angular/router' |
4 | import { AuthService, Notifier, RedirectService, UserService } from '@app/core' | 4 | import { AuthService, Notifier, RedirectService, UserService } from '@app/core' |
5 | import { HooksService } from '@app/core/plugins/hooks.service' | 5 | import { HooksService } from '@app/core/plugins/hooks.service' |
6 | import { FormReactive, FormValidatorService, LoginValidatorsService } from '@app/shared/shared-forms' | 6 | import { LOGIN_PASSWORD_VALIDATOR, LOGIN_USERNAME_VALIDATOR } from '@app/shared/form-validators/login-validators' |
7 | import { FormReactive, FormValidatorService } from '@app/shared/shared-forms' | ||
7 | import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' | 8 | import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' |
8 | import { RegisteredExternalAuthConfig, ServerConfig } from '@shared/models' | 9 | import { RegisteredExternalAuthConfig, ServerConfig } from '@shared/models' |
9 | 10 | ||
@@ -31,7 +32,6 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
31 | protected formValidatorService: FormValidatorService, | 32 | protected formValidatorService: FormValidatorService, |
32 | private route: ActivatedRoute, | 33 | private route: ActivatedRoute, |
33 | private modalService: NgbModal, | 34 | private modalService: NgbModal, |
34 | private loginValidatorsService: LoginValidatorsService, | ||
35 | private authService: AuthService, | 35 | private authService: AuthService, |
36 | private userService: UserService, | 36 | private userService: UserService, |
37 | private redirectService: RedirectService, | 37 | private redirectService: RedirectService, |
@@ -65,8 +65,8 @@ export class LoginComponent extends FormReactive implements OnInit, AfterViewIni | |||
65 | } | 65 | } |
66 | 66 | ||
67 | this.buildForm({ | 67 | this.buildForm({ |
68 | username: this.loginValidatorsService.LOGIN_USERNAME, | 68 | username: LOGIN_USERNAME_VALIDATOR, |
69 | password: this.loginValidatorsService.LOGIN_PASSWORD | 69 | password: LOGIN_PASSWORD_VALIDATOR |
70 | }) | 70 | }) |
71 | } | 71 | } |
72 | 72 | ||