-
Notifications
You must be signed in to change notification settings - Fork 73
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
{prefix}_users.user_nicename has extra characters added upon login #96
Comments
Thanks @bobbrodie I have also reported this issue in Wordpress Plugin support section - https://wordpress.org/support/topic/using-saml-login-user_nicename-field-getting-appended-with-2/ |
Ah, I didn't see that @sandykadam -- thanks for noting! |
I tested with Wordpress 5.4 and was not able to reproduce |
Any update on this? This has been plaguing a project I've been working on for the past 2 years. Would be great to get this fixed. |
@lloan I can't fix what I can't reproduce The plugin basically did not support nickname so the provided username is used by the wp_update_user that internally calls to That method has the following code:
So the suffix should only be added under the condition:
I only can think in a weird scenario where the user that breaks the rule is the same user registered, but I was not able to figure it out. Maybe you can provide the user data provided by the IdP, and the users in your database that has same nickname or same username, so I can try to reproduce here. Meanwhile, I added nickname support in case this can prevent the issue to appear. |
Prerequisites
Replication
Expected Behavior
Actual Behavior
The text was updated successfully, but these errors were encountered: