Unable to login with email address as the username – WordPress
I just noticed that on my production site users are not able to login using their
usernames (user_login field in wp_users) that are in an email format. So for example a username like
john.doe works fine but
email@example.com returns the following error:
“Unknown email address. Check again or try your username.”
(user_email field in wp_users) are working fine though. I thought the issue is being caused by ProfilePress or my custom theme. Disabled both but the issue still persists.
Has anyone gone through a similar issue? Please provide insight. I am about to lose my mind because I have already spent hours figuring out the issue. Tried to figure out the code trace and all I could understand is that upon login, both
wp_authenticate_username_password() are being called! I’m running WordPress 5.4.1 on PHP 7.3.8!