0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Fixed password fields not being cleared when leaving team/user page (#900)

closes TryGhost/Ghost#9174
- Added `willTransition` action which clears the password input fields when transitioning to a new route
This commit is contained in:
Eric Ellingson 2017-11-07 06:20:32 -06:00 committed by Kevin Ansfield
parent 3864584f74
commit 704be46266

View file

@ -33,6 +33,11 @@ export default AuthenticatedRoute.extend(styleBody, CurrentUserSettings, {
},
actions: {
willTransition() {
this.controller.set('user.password', '');
this.controller.set('user.newPassword', '');
this.controller.set('user.ne2Password', '');
},
didTransition() {
this.modelFor('team.user').get('errors').clear();
},