mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
parent
da4f192b7a
commit
ddbd76e254
1 changed files with 1 additions and 1 deletions
|
@ -979,7 +979,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
// Return a U2F hardware key challenge
|
// Return a U2F hardware key challenge
|
||||||
function getHardwareKeyChallenge(req, domain, user, func) {
|
function getHardwareKeyChallenge(req, domain, user, func) {
|
||||||
delete req.session.u2f;
|
delete req.session.u2f;
|
||||||
if (req.session = null) { req.session = {}; }
|
if (req.session == null) { req.session = {}; }
|
||||||
const sec = parent.decryptSessionData(req.session.e);
|
const sec = parent.decryptSessionData(req.session.e);
|
||||||
|
|
||||||
if (user.otphkeys && (user.otphkeys.length > 0)) {
|
if (user.otphkeys && (user.otphkeys.length > 0)) {
|
||||||
|
|
Loading…
Reference in a new issue