From f87473c306093d7006f9c9aca4545917adcefcbc Mon Sep 17 00:00:00 2001 From: Vitalii Lysak Date: Thu, 1 Sep 2022 11:19:48 +0300 Subject: rm user role after logout --- src/store/modules/Authentication/AuthenticanStore.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/store/modules/Authentication') 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; }, -- cgit v1.2.3