1
0
Fork 0

skip registration progress if you've done it before

This commit is contained in:
Julian 2023-04-25 20:00:13 -04:00
parent d5ec97ed73
commit 2756694ac6
Signed by untrusted user: NotNite
GPG Key ID: BD91A5402CCEB08A
1 changed files with 10 additions and 0 deletions

View File

@ -112,6 +112,16 @@ export async function GET(request: Request) {
} }
}); });
if (user?.username !== null) {
return new Response(null, {
status: 302,
headers: {
"Set-Cookie": `ticket=${authTicket.ticket}; Path=/;`,
Location: "/me"
}
});
}
return new Response(null, { return new Response(null, {
status: 302, status: 302,
headers: { headers: {