mirror of https://github.com/Chocobozzz/PeerTube
18 lines
584 B
TypeScript
18 lines
584 B
TypeScript
import { Validators } from '@angular/forms';
|
|
|
|
export const USER_USERNAME = {
|
|
VALIDATORS: [ Validators.required, Validators.minLength(3), Validators.maxLength(20) ],
|
|
MESSAGES: {
|
|
'required': 'Username is required.',
|
|
'minlength': 'Username must be at least 3 characters long.',
|
|
'maxlength': 'Username cannot be more than 20 characters long.'
|
|
}
|
|
};
|
|
export const USER_PASSWORD = {
|
|
VALIDATORS: [ Validators.required, Validators.minLength(6) ],
|
|
MESSAGES: {
|
|
'required': 'Password is required.',
|
|
'minlength': 'Password must be at least 6 characters long.',
|
|
}
|
|
};
|