• Resolved Hoopy

    (@lcwilson18)


    Hello,

    I am trying to implement the use of the Two-Factor Authentication shortcode in users’ profiles.

    Once the user enabled 2FA within their profile and logs out they are unable to log back in through the custom Memberpress login page.

    Would you be able to let me know what needs to be fired on the login page regards scripts or additional information on the login form so enabling 2FA with Memberpress will work?

    Currently, I just get the following when trying to login

    ERROR: CODE REQUIRED: Please provide your 2FA code when prompted.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @lcwilson18 and thanks for reaching out to us!

    It sounds like the plugin is using a custom login process and skipping some of WordPress’s normal authentication hooks, which can cause compatibility issues with many plugins that monitor or modify the login process, so we will need to make some code changes in order to evaluate logins while they are happening in this plugin. In a typical WordPress login, plugins are able to see failures while they are in progress (and handle some cases in them as needed, like replacing the login error message), rather than monitoring after they have failed like the wp_login_failed hook does. We have a similar issue with a custom login form in another plugin and will be scheduling improvements in an upcoming release.

    Sorry for the inconvenience!

    MemberPress does trigger a failed login action using the following:

    #178: do_action('wp_login_failed', $login, $login_error);

    This is found in /memberpress/app/controllers/MeprLoginCtrl.php

    @wfadam if you want to reach out to MemberPress (ask for Paul) directly from the contact page on our site, we can provide WF with a development copy to complete an integration.

    Thread Starter Hoopy

    (@lcwilson18)

    This would be great! Thank you both @cartpauj @wfadam

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Memberpress with Two-Factor Authentication’ is closed to new replies.