mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 01:42:29 +03:00
Merge pull request #3551 from halfdan/3540-password-reset
Proper messaging on password reset
This commit is contained in:
commit
294cdb3ddb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user