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:
parent
9f21730648
commit
bdbc689232
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ var ForgotValidator = Ember.Object.create({
|
|||
|
||||
if (!validator.isEmail(data.email)) {
|
||||
validationErrors.push({
|
||||
message: 'Invalid Email'
|
||||
message: 'Invalid email address'
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue