diff --git a/index.js b/index.js index 0214e83..0a0093a 100644 --- a/index.js +++ b/index.js @@ -328,7 +328,7 @@ app.post("/register", async function (req, res) { }); } else { if (postUser(name, password)) { - successes.push({ msg: "User Registered Please Log In" }); + req.session.successes.push({ msg: "User Registered Please Log In" }); res.redirect("/login"); } }