mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Updated log messages.
This commit is contained in:
parent
4c202741c2
commit
1fcaa1c9fc
2 changed files with 195 additions and 77 deletions
|
|
@ -17,7 +17,7 @@ export const useSession = createMiddleware(async (req, res, next) => {
|
|||
const session = await findSession(req);
|
||||
|
||||
if (!session) {
|
||||
log('useSession:session-not-found');
|
||||
log('useSession: Session not found.');
|
||||
return badRequest(res);
|
||||
}
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ export const useAuth = createMiddleware(async (req, res, next) => {
|
|||
log({ token, payload, user, shareToken });
|
||||
|
||||
if (!user && !shareToken) {
|
||||
log('useAuth:user-not-authorized');
|
||||
log('useAuth: User not authorized.');
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue