Quantcast
Channel: Topic Tag: "internal server error" | WordPress.org
Viewing all articles
Browse latest Browse all 994

500 Error When Logging In If Username is an Email Address

$
0
0

Hi,

Our users’s usernames are also their email addresses. This is how it has to be to allow logins to sync with our external customer database behind the scenes. All of this is working as expected, but I noticed recently that all user account logins are failing due to a 500 internal server error.

– I’m using v 4.7.3
– I’ve disabled all plugins.
– I’ve tested via /wp-admin/ login form (un-modified login process) and my custom login handler.
– I’ve tested locally via XAMPP and on our AWS development server.
– I’ve removed all code from my custom login handler (standalone, does not use hooks or filters) other than the call to wp_signon().

The issue is somewhere in wp_signon(). If I remove it, no 500 errors. If I keep it, then any time $_POST[‘log’] is an email address it fails. Any email, it doesn’t need to be an actual user.

I’m trying to track down error logs, but our internal security policies make these hard to obtain.

Can anybody else see the same problem? I haven’t changed the code, so I’m not sure why wp_singon() would stop working suddenly.


Viewing all articles
Browse latest Browse all 994

Trending Articles