login progress

This commit is contained in:
Edin Dazdarevic
2015-03-02 07:49:36 +01:00
parent 7c28876fed
commit 4befef5bf4
8 changed files with 233 additions and 63 deletions

View File

@@ -0,0 +1,17 @@
var Validations = {
_emailRe: /^(([^<>()[\]\\.,;:\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,}))$/,
isValidEmail: function(value) {
return this._emailRe.test(value);
},
isValidRequired: function(value) {
if(value === undefined || value === "") {
return false;
}
return true;
}
};
module.exports = Validations;