2FA authenticator app prefill not working in Safari
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
- Have Auth App configured in WP user and store password as well 2FA in Apple Passwords.
- Go to WP login in Safari
- Accept suggestion to fill password from Apple Passwords
- Accept suggestion to fill 2FA code from Apple Passwords
- 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
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?
Tried reproducing now and the code is not visible filled, but it logged me in... weird, will look it for a bit more.
Thanks for reporting the issue!
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
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 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?
No, just clean Safari