mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 09:35:36 +01:00
Login/logout process.
This commit is contained in:
parent
0f0b1e39e7
commit
f947c7770b
10 changed files with 91 additions and 58 deletions
|
|
@ -1,10 +1,10 @@
|
|||
import { savePageView, saveEvent } from 'lib/db';
|
||||
import { allowPost } from 'lib/middleware';
|
||||
import { useCors } from 'lib/middleware';
|
||||
import checkSession from 'lib/session';
|
||||
import { createToken } from 'lib/crypto';
|
||||
|
||||
export default async (req, res) => {
|
||||
await allowPost(req, res);
|
||||
await useCors(req, res);
|
||||
|
||||
const session = await checkSession(req);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue