1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 02:39:33 +02:00

unify inputs requiring buttons like password inputs

This commit is contained in:
Rigel Kent 2020-12-04 15:58:55 +01:00
parent aa5ee5017a
commit f8b530e0a5
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F
26 changed files with 177 additions and 100 deletions

View file

@ -39,6 +39,15 @@ export const USER_EMAIL_VALIDATOR: BuildFormValidator = {
}
}
export const USER_EXISTING_PASSWORD_VALIDATOR: BuildFormValidator = {
VALIDATORS: [
Validators.required
],
MESSAGES: {
'required': $localize`Password is required.`
}
}
export const USER_PASSWORD_VALIDATOR: BuildFormValidator = {
VALIDATORS: [
Validators.required,