0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05: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 9f21730648
commit bdbc689232
No known key found for this signature in database
GPG key ID: B3D10EF8171F7219

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'
});
}