Title: Two-Factor Authentication Issue
Last modified: December 29, 2023

---

# Two-Factor Authentication Issue

 *  Resolved [ccolotti](https://wordpress.org/support/users/ccolotti/)
 * (@ccolotti)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/two-factor-authentication-issue-2/)
 * 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/](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ftwo-factor-authentication-issue-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Amauri](https://wordpress.org/support/users/amauric/)
 * (@amauric)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/two-factor-authentication-issue-2/#post-17308725)
 * 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](https://support.wpmobile.app/article/267-disable-the-login-redirection)
 *  Thread Starter [ccolotti](https://wordpress.org/support/users/ccolotti/)
 * (@ccolotti)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/two-factor-authentication-issue-2/#post-17308857)
 * 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, 5 months ago by [ccolotti](https://wordpress.org/support/users/ccolotti/).
 *  Plugin Author [Amauri](https://wordpress.org/support/users/amauric/)
 * (@amauric)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/two-factor-authentication-issue-2/#post-17312581)
 * The plugin simply remove some wpmobile hooks. It will never be updated so you
   can leave it or paste the code somewhere else:
 *     ```wp-block-code
       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](https://wordpress.org/support/users/ccolotti/)
 * (@ccolotti)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/two-factor-authentication-issue-2/#post-17312620)
 * 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](https://wordpress.org/support/users/ccolotti/)
 * (@ccolotti)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/two-factor-authentication-issue-2/#post-17312727)
 * 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.

 * ![](https://ps.w.org/wpappninja/assets/icon-256x256.png?rev=2215187)
 * [WPMobile.App](https://wordpress.org/plugins/wpappninja/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpappninja/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpappninja/)
 * [Active Topics](https://wordpress.org/support/plugin/wpappninja/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpappninja/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpappninja/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [ccolotti](https://wordpress.org/support/users/ccolotti/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/two-factor-authentication-issue-2/#post-17312727)
 * Status: resolved