[wp-trac] Re: [WordPress Trac] #9568: Allow users to log in using their email address

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 30 12:39:48 GMT 2009


#9568: Allow users to log in using their email address
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:  Denis-de-Bernardy
     Type:  feature request    |      Status:  new              
 Priority:  normal             |   Milestone:  2.8              
Component:  Users              |     Version:  2.8              
 Severity:  normal             |    Keywords:  has-patch tested 
-------------------------------+--------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:15 misterbisson]:
 > I'm concerned that using preg_replace("/@.*/", "", $user_email) as the
 username creates a large opportunity for duplicate usernames.

 It's the user_nicename, and there is a function further down that ensures
 it's unique.


 > Also, the idea of building permalinks against an email address (which
 will necessarily change in my application as applicants become students at
 my university) seems off.

 Once set, the user_nicename isn't changed.


 > Still, I'd prefer using the user ID over using anything based on email
 address (other than, perhaps, an md5 of the email address).

 Oh, that's what the replace is about. john.doe at somewhere.com would have a
 nicename of john-doe (or john-doe-2 if there is one already). if this is a
 problem on some servers, one could use a plugin to change it as needed.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9568#comment:16>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list