Ticket #3708: wp_login.diff
| File wp_login.diff, 961 bytes (added by , 19 years ago) |
|---|
-
wp-includes/pluggable.php
182 182 //$login = $wpdb->get_row("SELECT ID, user_login, user_pass FROM $wpdb->users WHERE user_login = '$username'"); 183 183 184 184 if (!$login) { 185 $error = __('<strong>ERROR</strong>: Invalid username .');185 $error = __('<strong>ERROR</strong>: Invalid username / password combination.'); 186 186 return false; 187 187 } else { 188 188 // If the password is already_md5, it has been double hashed. … … 190 190 if ( ($already_md5 && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) { 191 191 return true; 192 192 } else { 193 $error = __('<strong>ERROR</strong>: In correct password.');193 $error = __('<strong>ERROR</strong>: Invalid username / password combination.'); 194 194 $pwd = ''; 195 195 return false; 196 196 }