diff options
Diffstat (limited to 'client/src/app/shared/form-validators/user-validators.ts')
-rw-r--r-- | client/src/app/shared/form-validators/user-validators.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/app/shared/form-validators/user-validators.ts b/client/src/app/shared/form-validators/user-validators.ts index 9efc5180d..115930146 100644 --- a/client/src/app/shared/form-validators/user-validators.ts +++ b/client/src/app/shared/form-validators/user-validators.ts | |||
@@ -39,6 +39,15 @@ export const USER_EMAIL_VALIDATOR: BuildFormValidator = { | |||
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 | ||
42 | export const USER_EXISTING_PASSWORD_VALIDATOR: BuildFormValidator = { | ||
43 | VALIDATORS: [ | ||
44 | Validators.required | ||
45 | ], | ||
46 | MESSAGES: { | ||
47 | 'required': $localize`Password is required.` | ||
48 | } | ||
49 | } | ||
50 | |||
42 | export const USER_PASSWORD_VALIDATOR: BuildFormValidator = { | 51 | export const USER_PASSWORD_VALIDATOR: BuildFormValidator = { |
43 | VALIDATORS: [ | 52 | VALIDATORS: [ |
44 | Validators.required, | 53 | Validators.required, |