mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Account settings page.
This commit is contained in:
parent
58a1be7a30
commit
b5cf9f8719
32 changed files with 597 additions and 162 deletions
|
|
@ -4,6 +4,11 @@ import { uuid, isValidId, parseToken } from 'lib/crypto';
|
|||
|
||||
export async function verifySession(req) {
|
||||
const { payload } = req.body;
|
||||
|
||||
if (!payload) {
|
||||
throw new Error('Invalid request');
|
||||
}
|
||||
|
||||
const { website: website_uuid, hostname, screen, language, session } = payload;
|
||||
|
||||
const token = await parseToken(session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue