forked from NotNet/gluestick
skip registration progress if you've done it before
This commit is contained in:
parent
d5ec97ed73
commit
2756694ac6
1 changed files with 10 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue