You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/02/18 20:01:50 UTC
[cloudstack-primate] branch master updated: store: remove set
cookies on logout
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push:
new 8498821 store: remove set cookies on logout
8498821 is described below
commit 84988219d8a1c13cf86418519bb31e73d1e23ce4
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Wed Feb 19 01:31:19 2020 +0530
store: remove set cookies on logout
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
src/store/modules/user.js | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index 0ff1dd8..be0e963 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -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 {