From ddbd76e254f63d4345be9ad5929858c02675535c Mon Sep 17 00:00:00 2001 From: Daniel Castellanos Date: Fri, 22 Jul 2022 23:01:43 +0000 Subject: [PATCH] Fix for #4307 Added missing equals sign when checking null session --- webserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver.js b/webserver.js index 5fb8a51a..feda538f 100644 --- a/webserver.js +++ b/webserver.js @@ -979,7 +979,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF // Return a U2F hardware key challenge function getHardwareKeyChallenge(req, domain, user, func) { delete req.session.u2f; - if (req.session = null) { req.session = {}; } + if (req.session == null) { req.session = {}; } const sec = parent.decryptSessionData(req.session.e); if (user.otphkeys && (user.otphkeys.length > 0)) {