• Resolved johnmg21981

    (@johnmg21981)


    I have found a specific scenario where the WP 2FA plugin is not sending an email with the code for logging in. The following are the steps to replicate.

    1. Login using an account, receive the 2FA message and complete the login.
    2. Log out.
    3. Log back in using the same account, receive the 2FA message but DO NOT complete the login.
    4. Go back to the home page. Log back in using the same account. You should not receive the email.
    5. Click Resend Code. You should receive the email. Complete the login.
    6. Log out.
    7. Log back in, receive the code and complete the login.`

    Step 4 doesn’t work properly. I should receive another email. Note that if I switch to a different browser in step 4 or use an Incognito window (so that I don’t have the same session) the issue still occurs.

    I believe the expected behavior would be that every time I log in I should receive the 2FA code. This is not happening and I believe it should be fixed.

    I have confirmed that this is an issue with the latest version of WordPress and the WP 2FA plugin.

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

    (@robert681)

    Hello @johnmg21981

    Thank you for using our plugin and for opening this thread.

    I can confirm that this is not a bug. This is the correct and expected behaviour.

    The codes sent over email do not expire. Therefore once the code is generated, the plugin won’t generate other codes for that user on login attempts until the code is used. Only when you click “resend code” the plugin invalidates the first code that was sent over email and sends a new one.

    Note that this will change in future versions of the plugin. We will have a setting that will allow the admin to specify the lifetime of these codes.

    I hope the above explains why the plugin works the way it works. Should you require any further information. Please do not hesitate to ask.

    Have a great weekend.

    Thread Starter johnmg21981

    (@johnmg21981)

    Thanks for the response. Do you have an idea of when the feature to toggle this behavior on and off will be released? Just a rough guess would be helpful. I will say that it caused a lot of confusion with our users. Thanks!

    Plugin Contributor robertabela

    (@robert681)

    Hello @johnmg21981

    I am afraid we can’t give you a date of when new features will be developed and released, sorry.

    Should there be anything else we can help you with, please do not hesitate to ask.

    Have a great week ahead.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email Fails to Send in Specific Scenario’ is closed to new replies.