mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
Fix issue with missing user role in Redis authentication
This commit is contained in:
parent
bce70c1034
commit
d43d134a58
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ export default async (
|
||||||
|
|
||||||
if (user && checkPassword(password, user.password)) {
|
if (user && checkPassword(password, user.password)) {
|
||||||
if (redisEnabled) {
|
if (redisEnabled) {
|
||||||
const token = await saveAuth({ userId: user.id });
|
const token = await saveAuth({ userId: user.id, role: user.role });
|
||||||
|
|
||||||
return ok(res, { token, user });
|
return ok(res, { token, user });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue