mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 10:31:06 +03:30
Forgot Password And Debuging
This commit is contained in:
@@ -101,9 +101,9 @@ export default {
|
||||
rules: {
|
||||
required: value => !!value || "Required.",
|
||||
counter: value =>
|
||||
value.length == 0 || value.length >= 5 || "Min 5 characters",
|
||||
!value || value.length == 0 || value.length >= 5 || "Min 5 characters",
|
||||
email: value => {
|
||||
if (value.length > 0) {
|
||||
if (value && value.length > 0) {
|
||||
const pattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
return pattern.test(value) || "Invalid e-mail.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user