29 lines
1.2 KiB
JavaScript
29 lines
1.2 KiB
JavaScript
|
/**
|
||
|
* Errors
|
||
|
*/
|
||
|
module.exports = {
|
||
|
|
||
|
required: 'This field is required',
|
||
|
digits: 'Must be only digits',
|
||
|
name: 'Must be at least 3 characters long and must only contain letters',
|
||
|
email: 'Must be a valid email',
|
||
|
username: 'Must be at between 4 and 32 characters long and start with a letter. You may use letters, numbers, underscores, and one dot',
|
||
|
pass: 'Must be at least 6 characters long, and contain at least one number, one uppercase and one lowercase letter',
|
||
|
strongpass: 'Must be at least 8 characters long and contain at least one uppercase and one lowercase letter and one number or special character',
|
||
|
phone: 'Must be a valid phone number',
|
||
|
zip: 'Must be a valid zip code',
|
||
|
url: 'Must be a valid URL',
|
||
|
number: 'Must be a number',
|
||
|
range: 'Must be a number between {0} and {1}',
|
||
|
min: 'Must be at least {0} characters long',
|
||
|
max: 'Must be under {0} characters',
|
||
|
minoption: 'Select at least {0} options',
|
||
|
maxoption: 'Select no more than {0} options',
|
||
|
minmax: 'Must be between {0} and {1} characters long',
|
||
|
select: 'Select an option',
|
||
|
extension: 'File(s) must have a valid extension ({*})',
|
||
|
equalto: 'Must have the same value as the "{0}" field',
|
||
|
date: 'Must be a valid date {0}'
|
||
|
|
||
|
};
|