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: NotNite
GPG key ID: BD91A5402CCEB08A

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, {
status: 302,
headers: {