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:
parent
124c492f30
commit
e01a9f024c
|
@ -5,7 +5,7 @@ var ForgotValidator = Ember.Object.create({
|
|||
|
||||
if (!validator.isEmail(data.email)) {
|
||||
validationErrors.push({
|
||||
message: 'Invalid Email'
|
||||
message: 'Invalid email address'
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue