• Resolved ccolotti

    (@ccolotti)


    I have used this 2FA plugin for a few years now. It works fine in mobile, desktop and all other functions, except in the app. I actually use the paid version of the same one below.

    https://wordpress.org/plugins/two-factor-authentication/

    The native “Login” option fails, but oddly even if I link to the “my-account” page as above in the menu instead the username/password is fine but the 2FA still fails (like the plugin isn’t accessible when in app mode). This is a bit more complex I understand, but if 2FA is enabled I can’t get a login to work unless I use the “treat as external link” option, but then the app does not still see the user as logged in after they click “done” to come back.

    Is there any way to figure out how to make the app login work with two factor enabled for a user?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Amauri

    (@amauric)

    Check this guide to disable all the wpmobile redirections related to login, it should fix this issue: https://support.wpmobile.app/article/267-disable-the-login-redirection

    Thread Starter ccolotti

    (@ccolotti)

    Ha! I’ll try that. I swear I do check the docs before I post but I searched for “2FA” not “login”. I may have one other question related to the push notifications user logins but I’ll search the docs again first. I’m getting really close to being ready to buy a license I think. The testing app has made it much easier to check all these functions.

    I will start testing that . Is there a way to do the same without a plugin but a code snippet as well? Just curious or is the plugin better and will it ever need updating, etc.

    • This reply was modified 2 years, 2 months ago by ccolotti.
    Plugin Author Amauri

    (@amauric)

    The plugin simply remove some wpmobile hooks. It will never be updated so you can leave it or paste the code somewhere else:

    add_action('plugins_loaded', 'wpmobile_remove_login_redirect_filter', PHP_INT_MAX);
    function wpmobile_remove_login_redirect_filter() {    
    	remove_filter('wp_login_failed', 'wpmobile_login_fail', 1);
    	remove_filter('login_redirect', 'wpmobile_redirect_after_login', 1);
    	remove_filter('woocommerce_login_redirect', 'wc_wpmobile_redirect_after_login', 1);
    	remove_filter( 'authenticate', 'wpmobile_username_password', 1);
        remove_action( 'wp_login_failed', 'wpmobile_login_fail', 1);
    }
    Thread Starter ccolotti

    (@ccolotti)

    awesome. Again thanks. I’ll probably be buying a license this week! I prefer the snippet so it’s one less plugin that security tools and other things check. :). I figured looking at it the snippet version was possible so thanks. I’ll try swapping it

    Thread Starter ccolotti

    (@ccolotti)

    That worked as well. Thanks!

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

The topic ‘Two-Factor Authentication Issue’ is closed to new replies.