• Resolved tsjippy

    (@tsjippy)


    First I really like this plugin, thanks!

    What whould be wonderfull if, on mobile devices, instead of showing a QR code a link could be displayed, which opens the authenticaor app.

    Can add that feature?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor robertabela

    (@robert681)

    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?

    Thread Starter tsjippy

    (@tsjippy)

    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.
    Plugin Contributor robertabela

    (@robert681)

    Thanks for this @tsjippy

    We will look into this and include it in the next update.

    Plugin Contributor robertabela

    (@robert681)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘mobile device support’ is closed to new replies.