Fixed 2FA messaging on login screen.
This commit is contained in:
parent
73dca2ba82
commit
23e197dcc9
|
@ -509,10 +509,10 @@
|
|||
if (tokenTimeout > 0) { setTimeout(function () { Q('hwtokenInput').value = '**timeout**'; QE('tokenOkButton', true); Q('tokenOkButton').click(); }, tokenTimeout); }
|
||||
try { if (hardwareKeyChallenge.length > 0) { hardwareKeyChallenge = JSON.parse(hardwareKeyChallenge); } else { hardwareKeyChallenge = null; } } catch (ex) { hardwareKeyChallenge = null }
|
||||
var twofakey = (hardwareKeyChallenge != null) && (hardwareKeyChallenge.type == 'webAuthn');
|
||||
var emailkey = otpemail && (messageid != 2) && (messageid != 4);
|
||||
var smskey = otpsms && (messageid != 2) && (messageid != 4);
|
||||
var msgkey = otpmsg && (messageid != 2) && (messageid != 4);
|
||||
var pushkey = otppush && (messageid != 2) && (messageid != 4);
|
||||
var emailkey = otpemail && (messageid != 2) && (messageid != 4) && (messageid != 6);
|
||||
var smskey = otpsms && (messageid != 2) && (messageid != 4) && (messageid != 6);
|
||||
var msgkey = otpmsg && (messageid != 2) && (messageid != 4) && (messageid != 6);
|
||||
var pushkey = otppush && (messageid != 2) && (messageid != 4) && (messageid != 6);
|
||||
QV('securityKeyButton', twofakey);
|
||||
QV('emailKeyButton', emailkey);
|
||||
QV('smsKeyButton', smskey);
|
||||
|
|
Loading…
Reference in New Issue