Thank you for your message @tsjippy
We are glad you like the plugin. What do you mean by showing a link instead of the QR code? A link to what, to open the Google Authenticator app?
yes, so I did i myself for now with js.
because you cannot scan a QR code which is actually on your mobile screen.
if (isMobileDevice()){
//Hide message and qr code, and add a new one
$('body').on('click', '#modal-1-content > div.wizard-step.active > a', function () {
var code = $("#wp-2fa-totp-qrcode").attr('src');
code = code.split("=otpauth")[1];
var message = "<p id='2falink'>Please follow the link to setup two factor authentication.<br>\
<a href='otpauth"+decodeURIComponent(code)+"'>Go to authenticator app</a></p>";
$(".step-setting-wrapper.active > h3").after(message);
$("#wp-2fa-totp-qrcode").hide();
$(".option-pill").hide();
});
//Remove temp message and make visible again.
$('body').on('click', '.wp2fa-setup-actions > a', function () {
$("#wp-2fa-totp-qrcode").show();
$(".option-pill").show();
$("2falink").remove();
});
}
-
This reply was modified 5 years, 11 months ago by
tsjippy.
Thanks for this @tsjippy
We will look into this and include it in the next update.
Hello @tsjippy
We have improved this in the latest update, version 1.4.2. Refer to the release notes here for more information on what is new and improved in this update: https://www.wpwhitesecurity.com/wp-2fa-1-4-2/
Should you have any other questions, please do not hesitate to ask.
Have a good day.