diff options
Diffstat (limited to 'client/src/app/shared/shared-forms/form-validators/reset-password-validators.service.ts')
-rw-r--r-- | client/src/app/shared/shared-forms/form-validators/reset-password-validators.service.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-forms/form-validators/reset-password-validators.service.ts b/client/src/app/shared/shared-forms/form-validators/reset-password-validators.service.ts index d2085a309..3d0b4dd64 100644 --- a/client/src/app/shared/shared-forms/form-validators/reset-password-validators.service.ts +++ b/client/src/app/shared/shared-forms/form-validators/reset-password-validators.service.ts | |||
@@ -1,19 +1,18 @@ | |||
1 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
2 | import { Validators } from '@angular/forms' | ||
3 | import { Injectable } from '@angular/core' | 1 | import { Injectable } from '@angular/core' |
2 | import { Validators } from '@angular/forms' | ||
4 | import { BuildFormValidator } from './form-validator.service' | 3 | import { BuildFormValidator } from './form-validator.service' |
5 | 4 | ||
6 | @Injectable() | 5 | @Injectable() |
7 | export class ResetPasswordValidatorsService { | 6 | export class ResetPasswordValidatorsService { |
8 | readonly RESET_PASSWORD_CONFIRM: BuildFormValidator | 7 | readonly RESET_PASSWORD_CONFIRM: BuildFormValidator |
9 | 8 | ||
10 | constructor (private i18n: I18n) { | 9 | constructor () { |
11 | this.RESET_PASSWORD_CONFIRM = { | 10 | this.RESET_PASSWORD_CONFIRM = { |
12 | VALIDATORS: [ | 11 | VALIDATORS: [ |
13 | Validators.required | 12 | Validators.required |
14 | ], | 13 | ], |
15 | MESSAGES: { | 14 | MESSAGES: { |
16 | 'required': this.i18n('Confirmation of the password is required.') | 15 | 'required': $localize`Confirmation of the password is required.` |
17 | } | 16 | } |
18 | } | 17 | } |
19 | } | 18 | } |