diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js index 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),