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

@@ -302,7 +302,13 @@ export default {
window.location.href = '/';
},
async socialAuth (network) {
let auth = await hello(network).login({scope: 'email'});
const url = window.location.href;
let auth = await hello(network).login({
scope: 'email',
// explicitly pass the redirect url or it might redirect to /home
redirect_uri: url, // eslint-disable-line camelcase
});
await this.$store.dispatch('auth:socialAuth', {
auth,