[wp-trac] Re: [WordPress Trac] #9568: Allow users to log in using
their email address
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 29 20:19:44 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 commit
-------------------------------+--------------------------------------------
Comment(by Denis-de-Bernardy):
@misterbisson: Agreed. What prompted me to write the patch was that this
wasn't trivial to implement with a plugin, and is a much needed
functionality when you're dealing with a membership site.
@Ryan: foo[at]bar.com gets sanitized as foo-bar-com (or foobar-com) as the
user_nicename. It presumably doesn't get changed afterwards due to this
check in wp_insert_user():
{{{
if ( empty($user_nicename) )
$user_nicename = sanitize_title( $user_login );
}}}
It's the only place where it actually gets written. Else, it's behaving as
a read-only field. If you'd rather see it changed as the username changes,
just let me know and I'll adjust the patch accordingly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9568#comment:10>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list