Reset email form value on success

closes #3663
- Set value of email input as nil string
This commit is contained in:
Jake Wright 2014-08-08 02:28:33 +01:00
parent a647e38e5e
commit 71104558b7

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');