Thank you for trying our plugin Angelo.
I am sorry to read about your issue. Let’s first rewind things a bit; you are getting prompted to configure 2FA without given any other option because when you activated the plugin you have configured it to enforce 2FA on users and they should configure instantly, without a grace period.
So technically, the plugin is doing its job and working correctly. If we add an option that would allow to reset the plugin’s settings, then it would beat the whole purpose of having policies in the first place. However, I do agree, that we can add such a setting, which can be available only to the admin who has configured the plugin.
In regards to problems sending emails, the plugin uses the default WordPress “email” system to send emails. As from email address it uses the admin email address configured in the WordPress settings. The most common problem in this scenario is the from email address is some random address, so the emails are not relayed by the SMTP server.
In your case, I suggest you do the following:
- Manually deactivate the plugin.
- Log in to the website.
- While logged in, re-activate the plugin.
- Change the settings not to enforce 2FA, temporarily
At this stage troubleshoot the email problem. You have a test email option in the settings. Only once that issue is solved enforce 2FA.
I hope the above helps. Please let me know if you need any additional information.
Looking forward to hearing from you.
Hi, I am having the same issue, getting stuck in the loop. I am able to manually deactivate the plugin. However, even if I delete the plugin and reinstall it, it still remembers the previous settings and enforces 2FA immediately. Can you please help me resolve?
Thanks!
Hi Robert, the problem is that, upon reactivation, I’m stuck with the pop-up.
Your suggestion:
Change the settings not to enforce 2FA, temporarily
cannot be done, I’m stuck with the email pop-up.
I decided to go with another solution.
Thanks anyway
Hello Bangelo123,
Indeed, the plugin settings are not deleted unless you configure the plugin to delete them. If you want to manually delete the settings, the plugin saves all settings in the database using the prefix wp_2fa_*.
All the generic plugin settings are saved in the wp_options table, and all the user specific settings, such as their 2FA setup, are saved in the wp_usermeta tables.
So you can safely delete any entry with the wp_2fa_* prefix in these tables to completely reset the configuration.
I hope that helps. Please let us know if you need any further assistance.
Robert, Thanks for the instructions to remove the database entries and restart. I am now able to try the test email. However, it fails and I have no way to debug. Other plugins are able to send emails. Can you help me with options?
Robert, I installed a plugin that verifies email capability, and I was able to successfully send email. However I am still not able to send test emails using the 2FA plugin. Please help.
Thank you for the update iphilips.
What plugin did you install to verify the email capability?
The most common problem with email deliverability is the “from email address” the plugin uses. By default the plugin uses the email address in the Administration Email Address in the WordPress settings. Sometimes this is just a random address, so your server is not relaying the email.
So the best thing to do is to override that by specifying which from email address the plugin should use. To do so please:
1) Navigate to the plugin’s settings page.
2) Click on Emails & Templates tab.
3) Tick the option Use another email address and specify an email address that uses the same domain as that of your website’s.
4) Save the settings by clicking Save.
5) Try to send a test email by clicking the button Test email delivery.
If the test works, that was the issue. If you still do not get an email, we can try and troubleshoot where the email is getting stuck, or if it is being sent. To check if it is being sent please:
1) Install the WP Activity Log plugin.
2) Once installed run the test again.
3) If an email was created and sent from WordPress you should see event ID 6061 in the activity log.
If you see that event, it means that the plugin is generating the email and it is forwarding it to WordPress. From their it goes to the SMTP server etc.
Do the above tests first. Keep me posted on the outcome.