Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using a mobile browser (Android 2.2 stock):
- Log in with your usename
- When the browser asks, save the password
- Go to user/edit
Now the browser autocompletes the form with your current password and username (which is usually wrong).
A simple solution is $form['#attributes'] = array('autocomplete' => 'off');
.
This won't hurt any other functionality, but on this form it can save you headaches.
I suggest using this on other forms where it might cause problems also.
Comment | File | Size | Author |
---|---|---|---|
#1 | disable-autocomplete-on-user_edit-form-1094402.patch | 849 bytes | Coornail |
Comments
Comment #1
Coornail CreditAttribution: Coornail commentedHere's a patch:
Comment #2
Coornail CreditAttribution: Coornail commentedComment #3
coltraneMarking as duplicate of #787876: Edit "My Account" fills the first password field because it has more discussion and is progressing first under Drupal 8, then can be backported.