' + format("Install" + ' ' + "Google Authenticator" + ' ' + "or a compatible application and scan the barcode, use this link or enter the secret. Then, enter the current 6 digit token below to activate 2-Step login.", message.url) + '
' + 'Secret ' + ' ' + secret + '
' + "Enter the token here for 2-step login:" + '
');
+ QH('d2optinfo', '
' + format("Install" + ' ' + "Google Authenticator" + ' ' + "or a compatible application and scan the barcode, use this link or enter the secret. Then, enter the current 6 digit token below to activate 2-Step login.", message.url) + '
' + 'Secret ' + ' ' + secret + '
' + "Enter the token here for 2-step login:" + '
');
new QRCode(Q('qrcode'), { text: message.url, width: 128, height: 128, colorDark: '#000000', colorLight: '#EEE', correctLevel: QRCode.CorrectLevel.H });
QV('idx_dlgOkButton', true);
QE('idx_dlgOkButton', false);
@@ -3528,7 +3528,7 @@
break;
}
case 'otpauth-getpasswords': {
- if (xxdialogMode) return;
+ if (xxdialogMode == 2 && (xxdialogTag != 'otpauth-manage')) return;
var x = "One time tokens can be used as secondary authentication. Generate a set, print them and keep them in a safe place.";
x += '
';
if (message.passwords) {
@@ -3549,13 +3549,15 @@
x += '
' + "No Active Tokens";
}
x += '
';
- x += '
';
- x += '';
+ x += '
';
+ x += '
';
+ x += ' ';
+ } else {
+ x += '
'
}
- x += ' ';
+ xxdialogTag = 'otpauth-manage';
setModalContent('xxAddAgent', "Manage Backup Codes", x);
showModal('xxAddAgentModal', 'idx_dlgOkButton');
break;
@@ -3569,7 +3571,7 @@
if (message.keys && message.keys.length > 0) {
for (var i in message.keys) {
var key = message.keys[i], type = (key.type == 2) ? 'OTP' : 'WebAuthn';
- x += start + '