diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/forms/form-validators/user.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/client/src/app/shared/forms/form-validators/user.ts b/client/src/app/shared/forms/form-validators/user.ts index 602576efa..d2a28a272 100644 --- a/client/src/app/shared/forms/form-validators/user.ts +++ b/client/src/app/shared/forms/form-validators/user.ts | |||
@@ -22,10 +22,15 @@ export const USER_EMAIL = { | |||
22 | } | 22 | } |
23 | } | 23 | } |
24 | export const USER_PASSWORD = { | 24 | export const USER_PASSWORD = { |
25 | VALIDATORS: [ Validators.required, Validators.minLength(6) ], | 25 | VALIDATORS: [ |
26 | Validators.required, | ||
27 | Validators.minLength(6), | ||
28 | Validators.maxLength(255) | ||
29 | ], | ||
26 | MESSAGES: { | 30 | MESSAGES: { |
27 | 'required': 'Password is required.', | 31 | 'required': 'Password is required.', |
28 | 'minlength': 'Password must be at least 6 characters long.' | 32 | 'minlength': 'Password must be at least 6 characters long.', |
33 | 'maxlength': 'Password cannot be more than 255 characters long.' | ||
29 | } | 34 | } |
30 | } | 35 | } |
31 | export const USER_VIDEO_QUOTA = { | 36 | export const USER_VIDEO_QUOTA = { |