mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-22 05:46:26 -08:00
redirect
This commit is contained in:
parent
7f694f1a4a
commit
4a2b0633f2
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue