mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
add cookie. add city database
This commit is contained in:
parent
0336f41e12
commit
55dfea1aba
5 changed files with 38 additions and 5 deletions
|
|
@ -21,6 +21,8 @@ export const useSession = createMiddleware(async (req, res, next) => {
|
|||
return badRequest(res);
|
||||
}
|
||||
|
||||
res.setHeader('Set-Cookie', `lemon_session_uuid=${session.session_uuid}`);
|
||||
|
||||
req.session = session;
|
||||
next();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue