1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Update validation to match server error.

When a using the forgottenRoute if you enter an incorrectly formatted
email address you would see the error message 'Invalid Email', however
if you entered an email address that was correctly formatted but missing
the error message would be 'Invalid email address'.

This fixes the discrepancy.
This commit is contained in:
Robert Jackson 2014-07-30 19:07:42 -04:00
parent 124c492f30
commit e01a9f024c

View file

@ -5,7 +5,7 @@ var ForgotValidator = Ember.Object.create({
if (!validator.isEmail(data.email)) {
validationErrors.push({
message: 'Invalid Email'
message: 'Invalid email address'
});
}