More Client Fixes (#9002)

* logout should entirely clear localstorage

* fix logout, fix social login, remove duplicate home page
This commit is contained in:
Matteo Pagliazzi
2017-08-29 16:18:26 +02:00
committed by GitHub
parent 9fc7bae13e
commit 40567fc8d0
8 changed files with 25 additions and 12 deletions

View File

@@ -267,8 +267,7 @@ export default {
},
methods: {
logout () {
localStorage.removeItem('habit-mobile-settings');
window.location.href = '/logout';
this.$store.dispatch('auth:logout');
},
showInbox () {
this.$root.$emit('show::modal', 'inbox-modal');