2FA Error – No Admins can log in using 2FA
-
Hello,
No admins are able to log into our site using Wordfence 2FA, which we enabled for all admins.
We see the following error “CODE INVALID: The 2FA code provided is either expired or invalid. Please try again”. The only way I can log in is by renaming the Wordfence plugin folder, logging in and reactivating it.
To troubleshoot, I deactivated 2FA in Wordfence and I then tried to set up 2FA again. I removed the old instance on my authenticator app (Authy) and I scanned the QR code with my phone, I entered the generated code but I’m getting the same error, no matter if I refresh, try different fresh browsers, or if I try to use recovery codes I get the same error. When I logged in I could see those recovery codes are showing as having been used (even though they didn’t allow me to log in).
Looking through Wordfence Diagnostics, the only error I can see is related to connectivity: “wp_remote_post() test back to this server failed! Response was: cURL error 7: Failed to connect to mysite.com port 443 after 4 ms: Couldn’t connect to server”.
Previously Wordfence and 2FA was working and everyone was able to log in.
I’m using Wordfence Version 7.11.5
I have looked at other support posts and have tried resetting “NTP” in settings, this has no effect. I have cleared WP Rocket Caches.
I noticed two malware alerts which I have fixed and run a new scan. Scan is clear now, but it has had no effect on my ability to log in using 2FA, I continue to get the same message: “CODE INVALID: The 2FA code provided is either expired or invalid. Please try again” Thank you.
Thank you
The page I need help with: [log in to see the link]
- The topic ‘2FA Error – No Admins can log in using 2FA’ is closed to new replies.