Fix user impersonation
This commit is contained in:
3
client/stores/auth.js
vendored
3
client/stores/auth.js
vendored
@@ -19,9 +19,8 @@ export const useAuthStore = defineStore('auth', {
|
||||
},
|
||||
// Stop admin impersonation
|
||||
stopImpersonating() {
|
||||
this.token = this.admin_token
|
||||
this.setToken(this.admin_token)
|
||||
this.admin_token = null
|
||||
// TODO: re-fetch user
|
||||
},
|
||||
|
||||
setToken(token) {
|
||||
|
||||
Reference in New Issue
Block a user