mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Updated date range handling. Fixed share page.
This commit is contained in:
parent
3fc5f5151b
commit
696d9c978c
28 changed files with 166 additions and 280 deletions
|
|
@ -44,7 +44,9 @@ export const useAuth = createMiddleware(async (req, res, next) => {
|
|||
user = await redis.get(authKey);
|
||||
}
|
||||
|
||||
log({ token, payload, user, shareToken });
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
log({ token, shareToken, payload, user });
|
||||
}
|
||||
|
||||
if (!user?.id && !shareToken) {
|
||||
log('useAuth: User not authorized');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue