Spam Trap: Cannot register via iPhone if using autofill
-
I just discovered that the registration form (on the My Account page) does not work properly on iPhones if the user chooses to use the phone’s autofill feature. If they type in all their info, it’s fine. But if they allow the iPhone (Safari browser) to autofill the email field, the Spam Trap field (named email_2) gets filled as well. That triggers the Anti-spam error message and the form cannot be submitted.
I tried making a custom form-login.php template that adds autocomplete=”off” to the email_2 input, but the problem persists. I believe the field name must also be changed because it appears the autofill must be seeing it as an actual email field. Such a fix requires a change to both the form-login.php template and includes/class-wc-form-handler.php.
- The topic ‘Spam Trap: Cannot register via iPhone if using autofill’ is closed to new replies.