mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 11:31:05 +03:30
Forgot Password And Debuging
This commit is contained in:
Vendored
+2
-2
@@ -123,10 +123,10 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
||||
return !!value || "Required.";
|
||||
},
|
||||
counter: function counter(value) {
|
||||
return value.length == 0 || value.length >= 5 || "Min 5 characters";
|
||||
return !value || value.length == 0 || value.length >= 5 || "Min 5 characters";
|
||||
},
|
||||
email: function email(value) {
|
||||
if (value.length > 0) {
|
||||
if (value && value.length > 0) {
|
||||
var 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