|
|
@ -275,27 +275,23 @@ export const actions = { |
|
|
|
return err |
|
|
|
return err |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
async ActSignOut({ commit }) { |
|
|
|
async ActSignOut({ commit, state }) { |
|
|
|
// console.log('in action signout');
|
|
|
|
// console.log('in action signout');
|
|
|
|
|
|
|
|
|
|
|
|
let err = null |
|
|
|
let err = null |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
// let err = await this.$axios.get('/auth/signout');
|
|
|
|
|
|
|
|
// console.log(err);
|
|
|
|
// console.log(err);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.$axios.post('/auth/signout', null, { |
|
|
|
|
|
|
|
headers: { |
|
|
|
|
|
|
|
'xc-auth': state.token |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
commit('MutSetUser', null) |
|
|
|
commit('MutSetUser', null) |
|
|
|
commit('MutSetToken', null) |
|
|
|
commit('MutSetToken', null) |
|
|
|
commit('MutMasterKey', null) |
|
|
|
commit('MutMasterKey', null) |
|
|
|
commit('MutAuthType', null) |
|
|
|
commit('MutAuthType', null) |
|
|
|
// commit('MutSetProjectToNull', null)
|
|
|
|
|
|
|
|
// commit('MutSetPaidUser', false);
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// commit('MutUiAbility', {
|
|
|
|
|
|
|
|
// rules: {
|
|
|
|
|
|
|
|
// darkTheme: false,
|
|
|
|
|
|
|
|
// maxTables: 5,
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
err = e |
|
|
|
err = e |
|
|
|
console.log(e) |
|
|
|
console.log(e) |
|
|
|