mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
fix: register
This commit is contained in:
@@ -56,7 +56,7 @@ module.exports = function (middleware) {
|
||||
}
|
||||
|
||||
// Validate session
|
||||
if (!req.session.meta && !res.get('Set-Cookie')) {
|
||||
if (req.uid && !req.session.meta && !res.get('Set-Cookie')) {
|
||||
res.clearCookie(nconf.get('sessionKey'), meta.configs.cookie.get());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user