mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
Updated login check.
This commit is contained in:
parent
e074394b13
commit
c24a0c87dc
6 changed files with 36 additions and 33 deletions
|
|
@ -57,7 +57,7 @@ export const useAuth = createMiddleware(async (req, res, next) => {
|
|||
} else if (redis.enabled && authKey) {
|
||||
const key = await redis.client.get(authKey);
|
||||
|
||||
user = await getUserById(key.userId);
|
||||
user = await getUserById(key?.userId);
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue