aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-09-05 14:59:15 +0200
committerChocobozzz <me@florianbigard.com>2018-09-05 15:00:25 +0200
commitb0ee41df7d6de2f77d30e7bb47c245c0b33019d4 (patch)
treeeafdc2bc0a8facd7a3b779d3998eb696f0177473 /client/src/app/shared
parent4c8e4e04d1b3f0f207e9155df393ceeb23dc2172 (diff)
downloadPeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.tar.gz
PeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.tar.zst
PeerTube-b0ee41df7d6de2f77d30e7bb47c245c0b33019d4.zip
Clean up change password validation
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/forms/form-validators/user-validators.service.ts8
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: {