summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-12-23 17:19:35 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-12-23 17:19:35 +0000
commit2a7df83994cd09e32e473c08d7b1f145812fa63f (patch)
treec23e109dc33a184fa81781f056a5d38bea48fa34
parent2508632647c3cb9f98814015553a743895bfa5d2 (diff)
downloadwordpress-mu-2a7df83994cd09e32e473c08d7b1f145812fa63f.tar.gz
wordpress-mu-2a7df83994cd09e32e473c08d7b1f145812fa63f.tar.xz
wordpress-mu-2a7df83994cd09e32e473c08d7b1f145812fa63f.zip
Clear cache properly when password is reset
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@484 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-inst/wp-login.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-inst/wp-login.php b/wp-inst/wp-login.php
index 4ba075f..4c2a4f7 100644
--- a/wp-inst/wp-login.php
+++ b/wp-inst/wp-login.php
@@ -138,8 +138,8 @@ case 'resetpass' :
$new_pass = substr( md5( uniqid( microtime() ) ), 0, 7);
$wpdb->query("UPDATE $wpdb->users SET user_pass = MD5('$new_pass'), user_activation_key = '' WHERE user_login = '$user->user_login'");
- wp_cache_delete($users->ID, 'users');
- wp_cache_delete($users->user_login, 'userlogins');
+ wp_cache_delete($user->ID, 'users');
+ wp_cache_delete($user->user_login, 'userlogins');
$message = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
$message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
$message .= get_settings('siteurl') . "/wp-login.php\r\n";