mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-17 09:01:06 +02:00
Sync app settings at login/registration instead of page load
This commit is contained in:
2
resources/js/stores/user.js
vendored
2
resources/js/stores/user.js
vendored
@ -6,6 +6,7 @@ import { useColorMode } from '@vueuse/core'
|
||||
import { useTwofaccounts } from '@/stores/twofaccounts'
|
||||
import { useGroups } from '@/stores/groups'
|
||||
import { useNotifyStore } from '@/stores/notify'
|
||||
import { useAppSettingsStore } from '@/stores/appSettings'
|
||||
|
||||
export const useUserStore = defineStore({
|
||||
id: 'user',
|
||||
@ -98,6 +99,7 @@ export const useUserStore = defineStore({
|
||||
this.$reset()
|
||||
this.initDataStores()
|
||||
this.applyUserPrefs()
|
||||
useAppSettingsStore().$reset()
|
||||
router.push({ name: 'login' })
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user