Skip to content

Commit

Permalink
Adding req.session = null; like in the other starter
Browse files Browse the repository at this point in the history
  • Loading branch information
NIcolas committed Sep 26, 2020
1 parent 78bd42b commit 47edff7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions appSystem/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = function(app, db, session, bcrypt, logStream) {

app.post("/logout", function(req, res) {
req.session.loggedIn = false;
req.session = null;
console.log("NOT LOGGED ANY MORE");
res.sendStatus(200);
});
Expand Down

0 comments on commit 47edff7

Please sign in to comment.