diff --git a/ghost/admin/app/controllers/signin.js b/ghost/admin/app/controllers/signin.js index bafd7a4a18..afe2e02f3f 100644 --- a/ghost/admin/app/controllers/signin.js +++ b/ghost/admin/app/controllers/signin.js @@ -57,7 +57,7 @@ export default Controller.extend(ValidationEngine, { this.set('flowErrors', (mainError.context.string || mainError.message.string)); - if (mainError.message.string.match(/your password must be reset/i)) { + if (mainError.type === 'PasswordResetRequiredError') { this.set('passwordResetEmailSent', true); }