change username to user

This commit is contained in:
Adrian Zürcher
2026-02-19 10:51:09 +01:00
parent ab88acd740
commit e686a27bf1
6 changed files with 23 additions and 10 deletions

View File

@@ -35,7 +35,7 @@ export function useLogin() {
await userStore
.setUser({
id: resp.data.id,
username: resp.data.user,
user: resp.data.user,
role: { role: resp.data.role, permissions: [] },
})
.catch((err) => NotifyResponse(err, 'error'));
@@ -69,7 +69,7 @@ export function useLogin() {
userStore
.setUser({
id: resp.data.id,
username: resp.data.user,
user: resp.data.user,
role: { role: resp.data.role, permissions: [] },
})
.catch((err) => NotifyResponse(err, 'error'));