X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2Fshared%2Fforms%2Fform-validators%2Fuser.ts;h=d2a28a2721541fd02ffdefe76c9a233a7868bd7a;hb=dce1d7957d6d843205030dbc4a712b79ec499b57;hp=602576efa00b5608f7ce96ebe9676448e8b5d1d3;hpb=8e8234abba7b64767e9ffb6dc38758a62b1ea16c;p=github%2FChocobozzz%2FPeerTube.git 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 = { } } export const USER_PASSWORD = { - VALIDATORS: [ Validators.required, Validators.minLength(6) ], + VALIDATORS: [ + Validators.required, + Validators.minLength(6), + Validators.maxLength(255) + ], MESSAGES: { 'required': 'Password is required.', - 'minlength': 'Password must be at least 6 characters long.' + 'minlength': 'Password must be at least 6 characters long.', + 'maxlength': 'Password cannot be more than 255 characters long.' } } export const USER_VIDEO_QUOTA = {