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:
parent
3864584f74
commit
704be46266
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue