You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a user registers/logs in for the first time, and the Authentication->onLogin() method is called, it calls Authentication->resolveIdentity() which then creates a new WordPress user.
If the users email address was already verified, the part of the email, before the @ is used as the user_login.
If two users register, where the part of the email before the @ is identical, no user is created the second time (wp_create_user() returns a WP_Error instance).
What is the reason for doing it this way?
It's an obvious issue.
I can confirm this issue. This was causing a no creation issue for us as well the uniqueness of this username field is fundamentally wrong. and if there is a wp error on creation there is no attempt to add like maybe a number on the end a random int and try again. Causes the user to constantly be put in loop when trying to log in. As soon as you add the user in manually they are logged in just fine.
Checklist
Description
When a user registers/logs in for the first time, and the
Authentication->onLogin()
method is called, it callsAuthentication->resolveIdentity()
which then creates a new WordPress user.If the users email address was already verified, the part of the email, before the @ is used as the user_login.
wordpress/src/Actions/Authentication.php
Line 704 in 169e917
If two users register, where the part of the email before the @ is identical, no user is created the second time (
wp_create_user()
returns aWP_Error
instance).What is the reason for doing it this way?
It's an obvious issue.
Reproduction
Additional context
No response
wp-auth0 version
5.2.1
WordPress version
6.7.1
PHP version
8.2.24
The text was updated successfully, but these errors were encountered: