Node.js based forum software built for the modern web
fix: #7169 Fixed logout being broken
Julian Lamb0eaa858b5b9
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex 33272da695..98b352050a 100644--- a/src/controllers/authentication.js+++ b/src/controllers/authentication.js@@ -472,7 +472,8 @@ authenticationController.logout = function (req, res, next) {function (next) {req.logout();req.session.regenerate(function (err) {- delete req.uid;+ req.uid = 0;+ req.headers['x-csrf-token'] = req.csrfToken();next(err);});},