Node.js based forum software built for the modern web
fix: session not persisting to database in some scenarios
Julian Lam020f0b832222
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.jsindex 8dcffd086d..c2a13fa792 100644--- a/src/controllers/authentication.js+++ b/src/controllers/authentication.js@@ -352,6 +352,7 @@ authenticationController.onSuccessfulLogin = async function (req, uid) {version: req.useragent.version,});await Promise.all([+ new Promise(resolve => req.session.save(resolve)),user.auth.addSession(uid, req.sessionID),user.updateLastOnlineTime(uid),user.updateOnlineUsers(uid),