I have installed it on a test site and the email OTP don’t seem to work for me. I am using only email authentication, not phone numbers. When I try to login and ask for an OTP code, the code reaches my inbox quickly but then when I type in the OTP code, the plugin says that the code is invalid. I have tried it both on regular and inprivate windows to no avail.
Hello there,
Thanks for reaching out and for your kind words! We’ve tested the plugin on our end, and everything appears to be working correctly. To help pinpoint why you’re seeing an “invalid code” error, could you please enable WordPress debug mode?
Here’s how to do it:
- Open your
wp-config.php
file (located in the root folder of your WordPress installation).
- Just before the line
/* That's all, stop editing! Happy publishing. */
, add the following:
// Enable WP_DEBUG mode
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
- Save the file and then try logging in with the OTP again.
After you test the ‘Login with OTP,’ please check your WordPress debug log (located at wp-content/debug.log
) to see what code was generated by the plugin. Confirm that it matches the code you received via email.
Let us know what you find in the debug log and whether the codes match up. If they don’t, we’ll dig deeper to figure out the next steps.
By the way, it would be nice if the OTP option could extend to the /wp-admin page as well.
Added to our TO-DO list.
Thanks, and looking forward to your update!
Best regards,
-
This reply was modified 3 weeks, 6 days ago by
B.Ng.