Refactor Admin Panel with more features (#384)
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
2
client/stores/auth.js
vendored
2
client/stores/auth.js
vendored
@@ -21,7 +21,7 @@ export const useAuthStore = defineStore("auth", {
|
||||
// Stop admin impersonation
|
||||
stopImpersonating() {
|
||||
this.setToken(this.admin_token)
|
||||
this.admin_token = null
|
||||
this.setAdminToken(null)
|
||||
},
|
||||
|
||||
setToken(token) {
|
||||
|
||||
Reference in New Issue
Block a user