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.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/src/app/login/login.component.ts b/client/src/app/login/login.component.ts
index f7aad06e8..a91522db3 100644
--- a/client/src/app/login/login.component.ts
+++ b/client/src/app/login/login.component.ts
@@ -7,7 +7,7 @@ import { AuthService } from '../core'
7import { FormReactive } from '../shared' 7import { FormReactive } from '../shared'
8import { I18n } from '@ngx-translate/i18n-polyfill' 8import { I18n } from '@ngx-translate/i18n-polyfill'
9import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' 9import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service'
10import { LOGIN_PASSWORD, LOGIN_USERNAME } from '@app/shared/forms/form-validators/login' 10import { LoginValidatorsService } from '@app/shared/forms/form-validators/login-validators.service'
11 11
12@Component({ 12@Component({
13 selector: 'my-login', 13 selector: 'my-login',
@@ -24,6 +24,7 @@ export class LoginComponent extends FormReactive implements OnInit {
24 24
25 constructor ( 25 constructor (
26 protected formValidatorService: FormValidatorService, 26 protected formValidatorService: FormValidatorService,
27 private loginValidatorsService: LoginValidatorsService,
27 private authService: AuthService, 28 private authService: AuthService,
28 private userService: UserService, 29 private userService: UserService,
29 private serverService: ServerService, 30 private serverService: ServerService,
@@ -40,8 +41,8 @@ export class LoginComponent extends FormReactive implements OnInit {
40 41
41 ngOnInit () { 42 ngOnInit () {
42 this.buildForm({ 43 this.buildForm({
43 username: LOGIN_USERNAME, 44 username: this.loginValidatorsService.LOGIN_USERNAME,
44 password: LOGIN_PASSWORD 45 password: this.loginValidatorsService.LOGIN_PASSWORD
45 }) 46 })
46 } 47 }
47 48