mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Proper messaging on password reset
fixes #3540 - Show proper message when reusing token - Show message after resetting password
This commit is contained in:
parent
4f7bac3aed
commit
c2c8e92e8f
@ -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