mirror of
https://github.com/BradNut/umami
synced 2025-09-08 17:40:29 +00: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…
Reference in a new issue