Forgot Password And Debuging

This commit is contained in:
saeid_01
2019-05-05 08:54:36 +04:30
parent c0523d8c4c
commit 6071cc4d49
18 changed files with 401 additions and 47 deletions
+2 -2
View File
@@ -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.";
}