fix meshcentralrouter not being told about all 2fa options
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Jul 1, 2025 at 16:45 UTC
1383df3f4e8d3399538189c1ff3102755413d75d
1 file changed
+1
-1
webserver.js
+1
-1
@@ -8607,7 +8607,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
8607
try { ws.send(JSON.stringify({ action: 'close', cause: 'noauth', msg: 'tokenrequired', msg2fa: msg2fa, msg2fasent: true, twoFactorCookieDays: twoFactorCookieDays })); ws.close(); } catch (e) { }
8608
} else {
8609
// Ask for a login token
8610
- try { ws.send(JSON.stringify({ action: 'close', cause: 'noauth', msg: 'tokenrequired', email2fa: email2fa, twoFactorCookieDays: twoFactorCookieDays })); ws.close(); } catch (e) { }
8610
+ try { ws.send(JSON.stringify({ action: 'close', cause: 'noauth', msg: 'tokenrequired', email2fa: email2fa, sms2fa: sms2fa, msg2fa: msg2fa, twoFactorCookieDays: twoFactorCookieDays })); ws.close(); } catch (e) { }
8611
}
8612
} else {
8613
// We are authenticated with 2nd factor.