You've already forked AstralRinth
forked from didirus/AstralRinth
Fix broken login button
This commit is contained in:
@@ -14,6 +14,8 @@ export default async function (context) {
|
||||
const cookie = context.app.$cookies.get('auth-token')
|
||||
|
||||
await context.store.dispatch('auth/fetchUser', { token: cookie })
|
||||
} else {
|
||||
context.$auth.user = null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user