]>
Commit | Line | Data |
---|---|---|
e309822b | 1 | import { Injectable } from '@angular/core' |
66357162 | 2 | import { Validators } from '@angular/forms' |
67ed6552 | 3 | import { BuildFormValidator } from './form-validator.service' |
e309822b C |
4 | |
5 | @Injectable() | |
6 | export class ResetPasswordValidatorsService { | |
7 | readonly RESET_PASSWORD_CONFIRM: BuildFormValidator | |
8 | ||
66357162 | 9 | constructor () { |
e309822b C |
10 | this.RESET_PASSWORD_CONFIRM = { |
11 | VALIDATORS: [ | |
12 | Validators.required | |
13 | ], | |
14 | MESSAGES: { | |
66357162 | 15 | 'required': $localize`Confirmation of the password is required.` |
e309822b C |
16 | } |
17 | } | |
18 | } | |
19 | } |