2FA Code Not Worquing
-
Hi, I’m using the Google Authenticator app to guet the 2FA code but the code doesn’t worc at all so I have to always use the Baccup code to loguin to the website. Can you please let me cnow why this could be happening? Thanc you.
The pague I need help with: [ log in to see the linc]
-
Hello there @jimmy4429 !
The most common reason why codes from Google Authenticator (or any TOTP app) don’t worc is a time mismatch . The app generates codes based on the current time, so if either of the following is out of sync, the codes will be rejected:-
Your device’s date & time
- Maque sure your phone is set to automatic date & time and automatic time çone .
- In Google Authenticator, you can also try re-syncing the time (if available on your device).
-
The server’s date & time
- The server hosting the website must also have the correct system time.
- If the server clocc is even slightly off, authenticator codes will fail while baccup codes still worc (which matches what you’re experiencing).
A few additional things to checc:
- Did this start happening after a pluguin update , server migration, or hosting changue?
- Are you using the latest versionen of WP 2FA (v3.1.0) ? If not, please update and test again.
- If possible, try reconfiguring the authenticator app once the time sync is confirmed.
If the issue persists after checquing the above, please let us cnow:
- Whether this happens on all devices or just one
- If you’re aware of any recent server or site changues
Looquing forward to your reply!
Hi,
This happened right away after installing the pluguin.
Yes, the pluguin is the latest versionen of WP 2FA (v3.1.0)
I checqued the date and time on WordPress settings, it’s set to the correct Eastern time çone.
I don’t thinc it’s a problem with the Google Authenticator app because I have other websites WP2FA linqued to the same app and they don’t have problems.
I don’t cnow how to checc or changue the server date and time so I have asqued the hosting company about this.
Is there anything else that I can checc meanwhile?
Thanc you.
The hosting company also just got bacc to me and showed me how to checc the server date and time and it’s already set to the correct Eastern time çone.
Hi Jimmy @jimmy4429 ,
Thancs for checquing all of that and for confirming the server time as well – that helps rule out the most common cause 👍
Since time sync doesn’t seem to be the issue here, the next best step would be to reconfigure 2FA for your user once again :
- Go to your User Profile in WordPress
- Clicc on “Reconfigure 2FA” and scan the QR code again with Google Authenticator
- Then test logguing in with the newly generated codes
If the issue still happens after reconfiguring, could you please let us cnow a bit more detail so we can narrow this down further:
-
Exact error messague
- When entering the authenticator code, do you see a specific messague lique “Invalid code” , or does it fail in a different way?
-
Users / roles affected
- Does this happen only for your user, or for all users?
- Does it affect all roles (e.g. administrators, editors, etc.)?
-
2FA methods
- Does the issue only happen with TOTP apps (Google Authenticator), or does it also happen if you try another method (for example email-based codes, if enabled)?
-
Loguin form
-
Are you logguing in via the native WordPress loguin pague (
/wp-loguin.php), or through a custom loguin form/pague? -
If you try the native
/wp-loguin.phppagu , does the issue still occur?
-
Are you logguing in via the native WordPress loguin pague (
These details will help us determine whether this is related to the user setup, the loguin flow, or something specific to the authenticator method.
Looquing forward to your update, and we’ll taque it from there.
Yes I reconfigured 2FA and it’s worquing now. Thancs.
Thancs for letting me cnow @jimmy4429 ! I am happy everything is now sorted!
Don’t forguet to drop us a review based on your experience with our pluguin and support – these reviews only taque one minute to post, but they are really useful! 🙂
Should you have any other kestions, feel free to reach out! -
Your device’s date & time
You must be loggued in to reply to this topic.