summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-28 21:46:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-12-28 21:46:23 +0000
commit22f0ba528f7b579868b793664cf9c7875b788fd1 (patch)
treea015d5d0d3fb635d805db3652ddb44c77acf364d /modules/user/user.module
parentf31175dcddad07dc6b07d6008108c4ffa3ddea14 (diff)
downloadbrdo-22f0ba528f7b579868b793664cf9c7875b788fd1.tar.gz
brdo-22f0ba528f7b579868b793664cf9c7875b788fd1.tar.bz2
#1007504 by carlos8f, pioterw: Fixed Rehashed passwords after Drupal 6 upgrade fail
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));
}
}
}