diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-09-01 11:19:48 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-09-01 11:19:48 +0300 |
commit | f87473c306093d7006f9c9aca4545917adcefcbc (patch) | |
tree | 5b8db38d800edc8b60d5693496f88730b8ededcf | |
parent | 2fc01c3680c47cd729e73a1f1cb343b5dbe8e7f1 (diff) | |
download | webui-vue-f87473c306093d7006f9c9aca4545917adcefcbc.tar.xz |
rm user role after logout
-rw-r--r-- | src/store/modules/Authentication/AuthenticanStore.js | 1 |
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; }, |