mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
add user role to login response
This commit is contained in:
parent
f528fac7be
commit
f01668f4c8
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ export default async (
|
|||
|
||||
return ok(res, {
|
||||
token,
|
||||
user: { id: user.id, username: user.username, createdAt: user.createdAt },
|
||||
user: { id: user.id, username: user.username, role: user.role, createdAt: user.createdAt },
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue