mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03: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;
|