This commit is contained in:
May 2023-08-04 04:28:21 +00:00
parent 7f694f1a4a
commit 4a2b0633f2

View file

@ -306,7 +306,7 @@ authRoutes.get("/confirm_email/:code", requiresAccount, (req,res) => {
if (e) clearTimeout(e) if (e) clearTimeout(e)
verificationCodes.delete(acc?.id||"") verificationCodes.delete(acc?.id||"")
res.send(`<script>window.close()</script>`) res.redirect("/")
} else { } else {
ServeError(res, 400, "invalid code") ServeError(res, 400, "invalid code")
} }