fix logout

remove DID_I_FINALLY_ADD_HTTPS
This commit is contained in:
Mystikfluu
2023-03-03 20:54:39 +01:00
parent 82976f4830
commit ea24ea70ed
4 changed files with 35 additions and 33 deletions
+10
View File
@@ -0,0 +1,10 @@
export const setup = function (router, con, server) {
const increaseUSERCall = server.increaseUSERCall
router.get("/logout", function (req, res) {
if (!increaseUSERCall(req, res))return;
res.cookie("AUTH_COOKIE", "", { maxAge: 0, httpOnly: true, secure: true });
res.redirect("/");
});
}