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

git-svn-id: http://svn.automattic.com/wordpress/trunk@11397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-19 15:56:53 +00:00
parent c3a0c4d9e2
commit d8b87f60a7
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')));
}