mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Switch to json web tokens.
This commit is contained in:
parent
5219582803
commit
cb0c912c5b
10 changed files with 202 additions and 86 deletions
10
lib/db.js
10
lib/db.js
|
|
@ -95,3 +95,13 @@ export async function saveEvent(website_id, session_id, url, event_type, event_v
|
|||
}),
|
||||
);
|
||||
}
|
||||
|
||||
export async function getAccount(username = '') {
|
||||
return runQuery(
|
||||
prisma.account.findOne({
|
||||
where: {
|
||||
username,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue