summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/user/user.module3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 1311a28b0..06233fcdf 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -1083,6 +1083,9 @@ function user_account_form(&$form, &$form_state) {
'#access' => !empty($protected_values),
'#description' => $current_pass_description,
'#weight' => -5,
+ // Do not let web browsers remember this password, since we are trying
+ // to confirm that the person submitting the form actually knows the
+ // current one.
'#attributes' => array('autocomplete' => 'off'),
);
$form['#validate'][] = 'user_validate_current_pass';