release v2.0.0 #4

Merged
crimsen merged 481 commits from develop into master 2024-01-18 15:15:08 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 9eb5412c14 - Show all commits

View File

@ -70,10 +70,11 @@ export const useMainStore = defineStore({
const userStore = useUserStore();
try {
const { data } = await api.post<FG.Session>('/auth', { userid, password });
this.user = await userStore.getUser(data.userid, true);
this.session = fixSession(data);
this.user = await userStore.getUser(data.userid, true);
return true;
} catch ({ response }) {
this.handleLoggedOut();
return (<AxiosResponse | undefined>response)?.status || false;
}
},