Add files via upload
This commit is contained in:
parent
d5e334d882
commit
611bd57ba6
1 changed files with 70 additions and 72 deletions
|
|
@ -266,17 +266,15 @@ export const user = new Elysia()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
try {
|
try {
|
||||||
db.exec("ROLLBACK");
|
db.exec("ROLLBACK");
|
||||||
} catch {
|
} catch (rollbackErr) {
|
||||||
// ignore rollback errors
|
console.warn("[user/register] ROLLBACK failed:", rollbackErr);
|
||||||
}
|
}
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ body: "signIn" },
|
{ body: "signIn" },
|
||||||
)
|
)
|
||||||
|
.get(
|
||||||
|
|
||||||
.get(
|
|
||||||
"/login",
|
"/login",
|
||||||
async ({ jwt, redirect, cookie: { auth } }) => {
|
async ({ jwt, redirect, cookie: { auth } }) => {
|
||||||
if (computeFirstRun()) {
|
if (computeFirstRun()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue