Skip to content

Commit

Permalink
fix: clear remembered credentials on "remember" unckeck [WTEL-4374]
Browse files Browse the repository at this point in the history
  • Loading branch information
dlohvinov committed Apr 16, 2024
1 parent 0dcf538 commit 543a20d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/store/modules/auth/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ const actions = {
if (context.state.username) localStorage.setItem('auth/username', context.state.username);
if (context.state.password) localStorage.setItem('auth/password', context.state.password);
localStorage.setItem('auth/rememberCredentials', 'true');
} else {
localStorage.removeItem('auth/username');
localStorage.removeItem('auth/password');
localStorage.removeItem('auth/rememberCredentials');
}
},

Expand Down

0 comments on commit 543a20d

Please sign in to comment.