fix logout
remove DID_I_FINALLY_ADD_HTTPS
This commit is contained in:
@@ -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("/");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user