Issue #787876 by zero2one, avior: Fixed Edit 'My Account' fills the first password field.

merge-requests/26/head
webchick 2011-09-05 11:35:32 -07:00
parent a42839c52d
commit 2c91411ad4
1 changed files with 1 additions and 0 deletions

View File

@ -1065,6 +1065,7 @@ function user_account_form(&$form, &$form_state) {
'#access' => !empty($protected_values),
'#description' => $current_pass_description,
'#weight' => -5,
'#attributes' => array('autocomplete' => 'off'),
);
$form['#validate'][] = 'user_validate_current_pass';
}