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

Merge pull request #3551 from halfdan/3540-password-reset

Proper messaging on password reset
This commit is contained in:
Sebastian Gierlinger 2014-08-01 15:47:38 +02:00
commit 42c5a32966

View file

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