FIX: password reset UI shares state on all profile pages and stops working after first use

This commit is contained in:
Neil Lalonde 2016-04-20 14:51:46 -04:00
parent c423ce6333
commit 0548523e8b
2 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,12 @@ export default Ember.Controller.extend(CanCheckEmails, {
return isSaving ? I18n.t('saving') : I18n.t('save'); return isSaving ? I18n.t('saving') : I18n.t('save');
}, },
reset() {
this.setProperties({
passwordProgress: null
});
},
passwordProgress: null, passwordProgress: null,
actions: { actions: {

View File

@ -8,6 +8,7 @@ export default RestrictedUserRoute.extend({
}, },
setupController(controller, user) { setupController(controller, user) {
controller.reset();
controller.setProperties({ controller.setProperties({
model: user, model: user,
newNameInput: user.get('name') newNameInput: user.get('name')