This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
pinry
mirror of
https://github.com/pinry/pinry.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
44
Wiki
Activity
Browse Source
Fix: Use refresh for logout
pull/169/head
winkidney
5 years ago
committed by
Isaac Bythewood
parent
602ca97d00
commit
d5a0260d51
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
pinry-spa/src/components/PHeader.vue
+1
-1
pinry-spa/src/components/api.js
+ 1
- 1
pinry-spa/src/components/PHeader.vue
View File
@@ -105,7 +105,7 @@ export default {
logOut() {
api.User.logOut().then(
() => {
this.$router.push('/'
);
window.location.reload(
);
},
);
},
+ 1
- 1
pinry-spa/src/components/api.js
View File
@@ -39,7 +39,7 @@ const User = {
const self = this;
return new Promise(
(resolve) => {
axios.get('/api-auth/logout/
?next=/api/v2/
').then(
axios.get('/api-auth/logout/').then(
() => {
storage.set(self.storageKey, null, 1);
resolve();
Write
Preview
Loading…
Cancel
Save