0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Proper messaging on password reset

fixes #3540
- Show proper message when reusing token
- Show message after resetting password
This commit is contained in:
Fabian Becker 2014-08-01 08:56:29 +00:00
parent 4f7bac3aed
commit c2c8e92e8f

View file

@ -32,8 +32,10 @@ var ResetController = Ember.Controller.extend(ValidationEngine, {
}
}).then(function (resp) {
self.toggleProperty('submitting');
self.notifications.showSuccess(resp.passwordreset[0].message, true);
self.transitionToRoute('signin');
}).catch(function (errors) {
}).catch(function (response) {
self.notifications.showAPIError(response);
self.toggleProperty('submitting');
});
}).catch(function (error) {