two-factor icon indicating copy to clipboard operation
two-factor copied to clipboard

2FA authenticator app prefill not working in Safari

Open repli2dev opened this issue 7 months ago • 3 comments

Describe the bug

When using Apple Passwords I expect that the Authenticator App 2FA code will be populated into the field when browser completion is selected, but it currently insert only part of the code and then send the form which fails the verification.

Steps to Reproduce

  1. Have Auth App configured in WP user and store password as well 2FA in Apple Passwords.
  2. Go to WP login in Safari
  3. Accept suggestion to fill password from Apple Passwords
  4. Accept suggestion to fill 2FA code from Apple Passwords
  5. The prefilled code is only partial and verification fails

Screenshots, screen recording, code snippet

No response

Environment information

WP 6.7.2 TwoFactor 0.13.0

Please confirm that you have searched existing issues in this repository.

Yes

Please confirm that you have tested with all plugins deactivated except Two-Factor.

No

repli2dev avatar Apr 16 '25 08:04 repli2dev

Thanks for reporting the issue!

but it currently insert only part of the code and then send the form which fails the verification.

Can you please provide a sample or screenshot of how it populates the field?

kasparsd avatar Apr 16 '25 08:04 kasparsd

Image

Tried reproducing now and the code is not visible filled, but it logged me in... weird, will look it for a bit more.

repli2dev avatar Apr 16 '25 19:04 repli2dev

Thanks for reporting the issue!

subrata6630 avatar May 01 '25 18:05 subrata6630

I'm not able to replicate the issue with version 0.14.0 of the plugin and Version 18.6 (20621.3.11.11.3) of Safari on macOS:

https://github.com/user-attachments/assets/de1595bf-14f7-4613-9820-9276133e3d0b

kasparsd avatar Sep 05 '25 09:09 kasparsd

Agree with closing but my statement

Tried reproducing now and the code is not visible filled, but it logged me in... weird, will look it for a bit more.

Is still true... so it works, but not whole code is visible.

repli2dev avatar Sep 05 '25 09:09 repli2dev

@repli2dev In the video I shared in the previous comment it appears that the code is fully visible. Do you have any Safari extension that could maybe impact this behaviour?

kasparsd avatar Sep 05 '25 09:09 kasparsd

No, just clean Safari

repli2dev avatar Sep 05 '25 09:09 repli2dev