mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
15 lines
347 B
JavaScript
15 lines
347 B
JavaScript
|
var ForgotValidator = Ember.Object.create({
|
||
|
validate: function (model) {
|
||
|
var data = model.getProperties('email'),
|
||
|
validationErrors = [];
|
||
|
|
||
|
if (!validator.isEmail(data.email)) {
|
||
|
validationErrors.push('Invalid Email');
|
||
|
}
|
||
|
|
||
|
return validationErrors;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export default ForgotValidator;
|