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 294cdb3ddb

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) {