From 5e72d1cf40de3f30f605af01d17e4690c8b7f3d3 Mon Sep 17 00:00:00 2001 From: Anna Daccache Date: Tue, 13 Apr 2021 16:49:20 -0700 Subject: [PATCH] Update user.js log out issues --- routes/user.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/user.js b/routes/user.js index 1a64172..1150383 100644 --- a/routes/user.js +++ b/routes/user.js @@ -27,6 +27,8 @@ router.post("/new-password", async (req, res) => { } }); +/*why is this in user? it is an authentication function. this also doesn't seem to actually redirect at all. +if you are doing the redirect on the backend, it is going to bug out.*/ router.get("/logout", async (req, res) => { req.session.destroy((err) => { if (err) {