summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-09-01 11:19:48 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-09-01 11:19:48 +0300
commitf87473c306093d7006f9c9aca4545917adcefcbc (patch)
tree5b8db38d800edc8b60d5693496f88730b8ededcf
parent2fc01c3680c47cd729e73a1f1cb343b5dbe8e7f1 (diff)
downloadwebui-vue-f87473c306093d7006f9c9aca4545917adcefcbc.tar.xz
rm user role after logout
-rw-r--r--src/store/modules/Authentication/AuthenticanStore.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/store/modules/Authentication/AuthenticanStore.js b/src/store/modules/Authentication/AuthenticanStore.js
index 45aec3ee..c50a8a9b 100644
--- a/src/store/modules/Authentication/AuthenticanStore.js
+++ b/src/store/modules/Authentication/AuthenticanStore.js
@@ -35,6 +35,7 @@ const AuthenticationStore = {
Cookies.remove('XSRF-TOKEN');
Cookies.remove('IsAuthenticated');
localStorage.removeItem('storedUsername');
+ localStorage.removeItem('storedUserrole');
state.xsrfCookie = undefined;
state.isAuthenticatedCookie = undefined;
},