Optimization from Skippy, fixes #1393
git-svn-id: http://svn.automattic.com/wordpress/trunk@2806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
317499b911
commit
ee4a846726
|
@ -135,7 +135,7 @@ function wp_login($username, $password, $already_md5 = false) {
|
||||||
} else {
|
} else {
|
||||||
// If the password is already_md5, it has been double hashed.
|
// If the password is already_md5, it has been double hashed.
|
||||||
// Otherwise, it is plain text.
|
// Otherwise, it is plain text.
|
||||||
if ( ($already_md5 && $login->user_login == $username && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) {
|
if ( ($already_md5 && md5($login->user_pass) == $password) || ($login->user_login == $username && $login->user_pass == md5($password)) ) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
$error = __('<strong>Error</strong>: Incorrect password.');
|
$error = __('<strong>Error</strong>: Incorrect password.');
|
||||||
|
|
Loading…
Reference in New Issue