mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-28 00:37:51 +02:00
add user role to login response
This commit is contained in:
parent
f528fac7be
commit
f01668f4c8
|
@ -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 New Issue
Block a user