Title: WPEngine 2FA issue
Last modified: March 6, 2021

---

# WPEngine 2FA issue

 *  Resolved [germanstaltari](https://wordpress.org/support/users/germanstaltari/)
 * (@germanstaltari)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wpengine-2fa-issue/)
 * Hi, I have activated the plugin in a WPEngine WP site and after I have enabled
   2FA, it gives 502 bad gateway after you enter the OTP code. I did some debugging
   and read WPEngine error codes docs and I’ve found that if you don’t add the ‘
   wpe-login=true’ to the URL query string, it fails to log you in (you can verify
   what I mean in this link: [https://wpengine.com/support/error/#444_-_Connection_Closed_Without_A_Response](https://wpengine.com/support/error/#444_-_Connection_Closed_Without_A_Response)).
   
   I’ve modified the code to add the wpe-login=true in the URL here (premium.php):
 *  // Form the URL
    $url = wp_login_url().’?wpe-login=true&action=loginizer_security&
   uid=’.$user->ID.’&lutoken=’.$token.(!empty($_REQUEST[‘redirect_to’]) ? ‘&redirect_to
   =’.urlencode($_REQUEST[‘redirect_to’]) : ”).(isset( $_REQUEST[‘interim-login’])?‘&
   interim-login=1’ : ”);
 * Could be possible to have some kind of patch for this issue?
    Thanks in advance,
   Regards German Staltari

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

 *  Thread Starter [germanstaltari](https://wordpress.org/support/users/germanstaltari/)
 * (@germanstaltari)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wpengine-2fa-issue/#post-14147405)
 * Hi, I’ve seen in another thread that you need a support request in your ticketing
   system for premium features. I’ve already done it.
    TIA German
 *  Plugin Contributor [loginizer](https://wordpress.org/support/users/loginizer/)
 * (@loginizer)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/wpengine-2fa-issue/#post-14149354)
 * Hi,
 * We have replied to your support ticket and will work with you on that ticket.
 * Closing this thread.
 *  Plugin Contributor [loginizer](https://wordpress.org/support/users/loginizer/)
 * (@loginizer)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/wpengine-2fa-issue/#post-14591311)
 * Hi,
 * Sorry for the delay.
 * We have fixed this issue and released Loginizer v1.6.7 with the fix.

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

The topic ‘WPEngine 2FA issue’ is closed to new replies.

 * ![](https://ps.w.org/loginizer/assets/icon-256x256.png?rev=1381093)
 * [Loginizer](https://wordpress.org/plugins/loginizer/)
 * [Support Threads](https://wordpress.org/support/plugin/loginizer/)
 * [Active Topics](https://wordpress.org/support/plugin/loginizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loginizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loginizer/reviews/)

## Tags

 * [wpengine](https://wordpress.org/support/topic-tag/wpengine/)

 * 3 replies
 * 2 participants
 * Last reply from: [loginizer](https://wordpress.org/support/users/loginizer/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/wpengine-2fa-issue/#post-14591311)
 * Status: resolved