mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Use portal for modals. Prisma disconnect after query.
This commit is contained in:
parent
774a7dfdbc
commit
d4ca02f110
5 changed files with 14 additions and 12 deletions
|
|
@ -10,12 +10,13 @@ export async function verifySession(req) {
|
|||
}
|
||||
|
||||
const { website: website_uuid, hostname, screen, language, session } = payload;
|
||||
const token = await parseToken(session);
|
||||
|
||||
if (!isValidId(website_uuid)) {
|
||||
throw new Error(`Invalid website: ${website_uuid}`);
|
||||
}
|
||||
|
||||
const token = await parseToken(session);
|
||||
|
||||
if (!token || token.website_uuid !== website_uuid) {
|
||||
const { userAgent, browser, os, ip, country, device } = await getClientInfo(req, payload);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue