[wp-trac] [WordPress Trac] #57394: wp_insert_user allows the new user to have a username equal to an already registered email

WordPress Trac noreply at wordpress.org
Fri Feb 17 08:08:34 UTC 2023


#57394: wp_insert_user allows the new user to have a username equal to an already
registered email
----------------------------------------+------------------------------
 Reporter:  buutqn                      |       Owner:  adamsilverstein
     Type:  defect (bug)                |      Status:  closed
 Priority:  normal                      |   Milestone:  6.2
Component:  Login and Registration      |     Version:  6.1.1
 Severity:  normal                      |  Resolution:  fixed
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------
Changes (by adamsilverstein):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55358" 55358]:
 {{{
 #!CommitTicketReference repository="" revision="55358"
 Login and Registration: prevent registering with username that matches
 previous user email.

 When registering a new user, check that no existing user has an email
 matching the username.

 Prevents a login name collision when one user registers with the email
 address user at test.com and a second user tries to register with the
 username user at test.com.

 Props buutqn, dunhakdis, roytanck, ajayver.
 Fixes #57394.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57394#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list