aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+login/login.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+login/login.component.ts')
-rw-r--r--client/src/app/+login/login.component.ts8
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
3import { ActivatedRoute } from '@angular/router' 3import { ActivatedRoute } from '@angular/router'
4import { AuthService, Notifier, RedirectService, UserService } from '@app/core' 4import { AuthService, Notifier, RedirectService, UserService } from '@app/core'
5import { HooksService } from '@app/core/plugins/hooks.service' 5import { HooksService } from '@app/core/plugins/hooks.service'
6import { FormReactive, FormValidatorService, LoginValidatorsService } from '@app/shared/shared-forms' 6import { LOGIN_PASSWORD_VALIDATOR, LOGIN_USERNAME_VALIDATOR } from '@app/shared/form-validators/login-validators'
7import { FormReactive, FormValidatorService } from '@app/shared/shared-forms'
7import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap' 8import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap'
8import { RegisteredExternalAuthConfig, ServerConfig } from '@shared/models' 9import { 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