diff --git a/api/src/stores/main.ts b/api/src/stores/main.ts index 172797c..31db06c 100644 --- a/api/src/stores/main.ts +++ b/api/src/stores/main.ts @@ -67,8 +67,10 @@ export const useMainStore = defineStore({ }, async login(userid: string, password: string) { + const userStore = useUserStore(); try { const { data } = await api.post('/auth', { userid, password }); + this.user = await userStore.getUser(data.userid, true); this.session = fixSession(data); return true; } catch ({ response }) {