summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module5
1 files changed, 1 insertions, 4 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 212724775..b7ebfdd10 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -2180,10 +2180,7 @@ function user_authenticate($name, $password) {
// Update user to new password scheme if needed.
if (user_needs_new_hash($account)) {
- $new_hash = user_hash_password($password);
- if ($new_hash) {
- user_save($account, array('pass' => $new_hash));
- }
+ user_save($account, array('pass' => $password));
}
}
}