Typo.
git-svn-id: https://develop.svn.wordpress.org/trunk@3346 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5a3ee2891d
commit
acbfe4f271
|
@ -138,8 +138,8 @@ case 'resetpass' :
|
||||||
|
|
||||||
$new_pass = substr( md5( uniqid( microtime() ) ), 0, 7);
|
$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'");
|
$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($user->ID, 'users');
|
||||||
wp_cache_delete($users->user_login, 'userlogins');
|
wp_cache_delete($user->user_login, 'userlogins');
|
||||||
$message = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
|
$message = sprintf(__('Username: %s'), $user->user_login) . "\r\n";
|
||||||
$message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
|
$message .= sprintf(__('Password: %s'), $new_pass) . "\r\n";
|
||||||
$message .= get_settings('siteurl') . "/wp-login.php\r\n";
|
$message .= get_settings('siteurl') . "/wp-login.php\r\n";
|
||||||
|
|
Loading…
Reference in New Issue