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:
commit
42c5a32966
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue