projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e8234a
)
fix #382 generic error when password is too long (#383)
author
jomo
<github@jomo.tv>
Fri, 23 Mar 2018 08:13:33 +0000
(08:13 +0000)
committer
Chocobozzz
<me@florianbigard.com>
Fri, 23 Mar 2018 08:13:33 +0000
(09:13 +0100)
client/src/app/shared/forms/form-validators/user.ts
patch
|
blob
|
history
diff --git
a/client/src/app/shared/forms/form-validators/user.ts
b/client/src/app/shared/forms/form-validators/user.ts
index 602576efa00b5608f7ce96ebe9676448e8b5d1d3..d2a28a2721541fd02ffdefe76c9a233a7868bd7a 100644
(file)
--- 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 = {