Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special characters in usernames fail logins after the first #202

Open
bdurrow opened this issue Apr 20, 2021 · 2 comments
Open

Special characters in usernames fail logins after the first #202

bdurrow opened this issue Apr 20, 2021 · 2 comments

Comments

@bdurrow
Copy link

bdurrow commented Apr 20, 2021

For our application users use email addresses for their username. If this email address has a + in it like [email protected] the username is created in wordpress as [email protected]. After the user logs out and tried to log back in authentication fails with this logged:

[20-Apr-2021 15:32:29 UTC] [AuthLDAP] The LDAP user does not have an entry in the WP-Database, a new WP account will be created
[20-Apr-2021 15:32:29 UTC] [AuthLDAP] Error creating user : Sorry, that username already exists!

If I don't get an internal ticket to fix this I am unlikely to fix it but if I do will you accept a PR?

@heiglandreas
Copy link
Owner

I'd be happy to receive a PR to fix this. Though it might be an issue with WordPress' way of "sanitizing" usernames... 😕

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants