From d86711e09d4a5c8b10c46b3e67a08027b448b3de Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Wed, 30 Jul 2014 19:07:42 -0400 Subject: [PATCH] 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. --- ghost/admin/validators/forgotten.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/validators/forgotten.js b/ghost/admin/validators/forgotten.js index b8a6ee9d84..95eb9b5627 100644 --- a/ghost/admin/validators/forgotten.js +++ b/ghost/admin/validators/forgotten.js @@ -5,7 +5,7 @@ var ForgotValidator = Ember.Object.create({ if (!validator.isEmail(data.email)) { validationErrors.push({ - message: 'Invalid Email' + message: 'Invalid email address' }); }