mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
Autologin via ?hash=xxx parameter in url
This commit is contained in:
parent
2575cbfc11
commit
6bd01aaa45
8 changed files with 64 additions and 4 deletions
|
|
@ -223,6 +223,16 @@ export async function getAccountById(user_id) {
|
|||
);
|
||||
}
|
||||
|
||||
export async function getAccountByHash(hash) {
|
||||
return runQuery(
|
||||
prisma.account.findUnique({
|
||||
where: {
|
||||
hash,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
export async function getAccountByUsername(username) {
|
||||
return runQuery(
|
||||
prisma.account.findUnique({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue