mirror of https://github.com/apache/cloudstack.git
store: remove set cookies on logout
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
f06f0532e7
commit
fe051554a4
|
|
@ -178,6 +178,16 @@ const user = {
|
|||
Vue.ls.remove(ASYNC_JOB_IDS)
|
||||
|
||||
logout(state.token).then(() => {
|
||||
Cookies.remove('account')
|
||||
Cookies.remove('domainid')
|
||||
Cookies.remove('role')
|
||||
Cookies.remove('sessionkey')
|
||||
Cookies.remove('timezone')
|
||||
Cookies.remove('timezoneoffset')
|
||||
Cookies.remove('userfullname')
|
||||
Cookies.remove('userid')
|
||||
Cookies.remove('username')
|
||||
|
||||
if (cloudianUrl) {
|
||||
window.location.href = cloudianUrl
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue