Browse Source

Update check-auth.js to show username

pull/1274/head
Hironsan 3 years ago
parent
commit
5ff4e811e0
1 changed files with 1 additions and 1 deletions
  1. 2
      frontend/middleware/check-auth.js

2
frontend/middleware/check-auth.js

@ -1,5 +1,5 @@
export default async function({ store }) {
if (!store.getters['auth/isAuthenticated']) {
if (!store.getters['auth/isAuthenticated'] || !store.getters['auth/getUsername']) {
await store.dispatch('auth/initAuth')
}
}
Loading…
Cancel
Save