Allow case-insensitive logins. Props mdawaffe. fixes #5472

git-svn-id: https://develop.svn.wordpress.org/trunk@11397 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-19 15:56:53 +00:00
parent 326affd4ad
commit 83698ae7e4
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ function wp_authenticate_username_password($user, $username, $password) {
$userdata = get_userdatabylogin($username);
if ( !$userdata || ($userdata->user_login != $username) ) {
if ( !$userdata ) {
return new WP_Error('invalid_username', sprintf(__('<strong>ERROR</strong>: Invalid username. <a href="%s" title="Password Lost and Found">Lost your password</a>?'), site_url('wp-login.php?action=lostpassword', 'login')));
}