diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/form-validators/user-validators.service.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/app/shared/forms/form-validators/user-validators.service.ts b/client/src/app/shared/forms/form-validators/user-validators.service.ts index 424553d74..1fd1cdf68 100644 --- a/client/src/app/shared/forms/form-validators/user-validators.service.ts +++ b/client/src/app/shared/forms/form-validators/user-validators.service.ts | |||
@@ -8,6 +8,7 @@ export class UserValidatorsService { | |||
8 | readonly USER_USERNAME: BuildFormValidator | 8 | readonly USER_USERNAME: BuildFormValidator |
9 | readonly USER_EMAIL: BuildFormValidator | 9 | readonly USER_EMAIL: BuildFormValidator |
10 | readonly USER_PASSWORD: BuildFormValidator | 10 | readonly USER_PASSWORD: BuildFormValidator |
11 | readonly USER_CONFIRM_PASSWORD: BuildFormValidator | ||
11 | readonly USER_VIDEO_QUOTA: BuildFormValidator | 12 | readonly USER_VIDEO_QUOTA: BuildFormValidator |
12 | readonly USER_VIDEO_QUOTA_DAILY: BuildFormValidator | 13 | readonly USER_VIDEO_QUOTA_DAILY: BuildFormValidator |
13 | readonly USER_ROLE: BuildFormValidator | 14 | readonly USER_ROLE: BuildFormValidator |
@@ -55,6 +56,13 @@ export class UserValidatorsService { | |||
55 | } | 56 | } |
56 | } | 57 | } |
57 | 58 | ||
59 | this.USER_CONFIRM_PASSWORD = { | ||
60 | VALIDATORS: [], | ||
61 | MESSAGES: { | ||
62 | 'matchPassword': this.i18n('The new password and the confirmed password do not correspond.') | ||
63 | } | ||
64 | } | ||
65 | |||
58 | this.USER_VIDEO_QUOTA = { | 66 | this.USER_VIDEO_QUOTA = { |
59 | VALIDATORS: [ Validators.required, Validators.min(-1) ], | 67 | VALIDATORS: [ Validators.required, Validators.min(-1) ], |
60 | MESSAGES: { | 68 | MESSAGES: { |