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:
parent
b0a9743af0
commit
d43c6b1ffc
14 changed files with 190 additions and 30 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue