mirror of
https://github.com/pinry/pinry.git
synced 2025-11-16 09:55:50 +01:00
Fix: Use refresh for logout
This commit is contained in:
committed by
Isaac Bythewood
parent
602ca97d00
commit
d5a0260d51
@@ -105,7 +105,7 @@ export default {
|
|||||||
logOut() {
|
logOut() {
|
||||||
api.User.logOut().then(
|
api.User.logOut().then(
|
||||||
() => {
|
() => {
|
||||||
this.$router.push('/');
|
window.location.reload();
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ const User = {
|
|||||||
const self = this;
|
const self = this;
|
||||||
return new Promise(
|
return new Promise(
|
||||||
(resolve) => {
|
(resolve) => {
|
||||||
axios.get('/api-auth/logout/?next=/api/v2/').then(
|
axios.get('/api-auth/logout/').then(
|
||||||
() => {
|
() => {
|
||||||
storage.set(self.storageKey, null, 1);
|
storage.set(self.storageKey, null, 1);
|
||||||
resolve();
|
resolve();
|
||||||
|
|||||||
Reference in New Issue
Block a user