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:
@@ -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')));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user