Merge pull request #3705 from wjake/issue-3663

Reset forgotten form on success
This commit is contained in:
Hannah Wolfe 2014-08-08 22:45:53 +01:00
commit 78929cab1a

View File

@ -27,6 +27,7 @@ var ForgottenController = Ember.Controller.extend(ValidationEngine, {
}).then(function (resp) {
self.toggleProperty('submitting');
self.notifications.showSuccess('Please check your email for instructions.', {delayed: true});
self.set('email', '');
self.transitionToRoute('signin');
}).catch(function (resp) {
self.toggleProperty('submitting');