X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FLogout.vue;h=919e49298935a74e84169b97515e5d5d099d0da9;hp=0db08a93b7881368f4ca422c515fa0c8a586401d;hb=e57c4de4148d43e7635e09adcde4e56585aea303;hpb=e01e086d96f3c0f04761d269e6a34ba0b6014a56 diff --git a/client/src/views/Logout.vue b/client/src/views/Logout.vue index 0db08a93..919e4929 100644 --- a/client/src/views/Logout.vue +++ b/client/src/views/Logout.vue @@ -21,14 +21,17 @@ export default { ajax( "/logout", "GET", - () => { - this.logoutOk = true; - this.st.user.id = 0; - this.st.user.name = ""; - this.st.user.email = ""; - this.st.user.notify = false; - localStorage.removeItem("myid"); - localStorage.removeItem("myname"); + { + credentials: true, + success: () => { + this.logoutOk = true; + this.st.user.id = 0; + this.st.user.name = ""; + this.st.user.email = ""; + this.st.user.notify = false; + localStorage.removeItem("myid"); + localStorage.removeItem("myname"); + } } ); }