mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-27 18:39:09 +00:00
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:
parent
c3a0c4d9e2
commit
d8b87f60a7
@ -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')));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user