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

Implement remote interaction

This commit is contained in:
Chocobozzz 2021-01-14 14:13:23 +01:00 committed by Chocobozzz
parent b0a9743af0
commit d43c6b1ffc
14 changed files with 190 additions and 30 deletions

View file

@ -39,6 +39,17 @@ export const USER_EMAIL_VALIDATOR: BuildFormValidator = {
}
}
export const USER_HANDLE_VALIDATOR: BuildFormValidator = {
VALIDATORS: [
Validators.required,
Validators.pattern(/@.+/)
],
MESSAGES: {
'required': $localize`Handle is required.`,
'pattern': $localize`Handle must be valid (chocobozzz@example.com).`
}
}
export const USER_EXISTING_PASSWORD_VALIDATOR: BuildFormValidator = {
VALIDATORS: [
Validators.required