diff options
Diffstat (limited to 'client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts')
-rw-r--r-- | client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts index 56e644f39..7be7aabc2 100644 --- a/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts +++ b/client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts | |||
@@ -1,8 +1,9 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { NotificationsService } from 'angular2-notifications' | 2 | import { NotificationsService } from 'angular2-notifications' |
3 | import { FormReactive, USER_PASSWORD, UserService } from '../../../shared' | 3 | import { FormReactive, UserService } from '../../../shared' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | 4 | import { I18n } from '@ngx-translate/i18n-polyfill' |
5 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' | 5 | import { FormValidatorService } from '@app/shared/forms/form-validators/form-validator.service' |
6 | import { UserValidatorsService } from '@app/shared/forms/form-validators/user-validators.service' | ||
6 | 7 | ||
7 | @Component({ | 8 | @Component({ |
8 | selector: 'my-account-change-password', | 9 | selector: 'my-account-change-password', |
@@ -14,6 +15,7 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On | |||
14 | 15 | ||
15 | constructor ( | 16 | constructor ( |
16 | protected formValidatorService: FormValidatorService, | 17 | protected formValidatorService: FormValidatorService, |
18 | private userValidatorsService: UserValidatorsService, | ||
17 | private notificationsService: NotificationsService, | 19 | private notificationsService: NotificationsService, |
18 | private userService: UserService, | 20 | private userService: UserService, |
19 | private i18n: I18n | 21 | private i18n: I18n |
@@ -23,8 +25,8 @@ export class MyAccountChangePasswordComponent extends FormReactive implements On | |||
23 | 25 | ||
24 | ngOnInit () { | 26 | ngOnInit () { |
25 | this.buildForm({ | 27 | this.buildForm({ |
26 | 'new-password': USER_PASSWORD, | 28 | 'new-password': this.userValidatorsService.USER_PASSWORD, |
27 | 'new-confirmed-password': USER_PASSWORD | 29 | 'new-confirmed-password': this.userValidatorsService.USER_PASSWORD |
28 | }) | 30 | }) |
29 | } | 31 | } |
30 | 32 | ||