[wp-trac] Re: [WordPress Trac] #9568: Allow users to log in using
their email address
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 18 19:10:22 GMT 2009
#9568: Allow users to log in using their email address
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: Denis-de-Bernardy
Type: feature request | Status: accepted
Priority: high | Milestone: 2.9
Component: Users | Version: 2.8
Severity: major | Keywords: has-patch early
-------------------------------+--------------------------------------------
Comment(by aaroncampbell):
I haven't gone through everything here yet (there's a lot of patches
here), but I definitely have to say that logging in with an E-Mail is a
big deal, and implemented on almost all the sites I do. I'd love to see
this taken a little further, because right now most of what I do is
simply:
{{{
function allow_email_login($user, $pass) {
global $wpdb;
if (is_email($user)) {
$user = $wpdb->get_var("SELECT user_login FROM $wpdb->users
WHERE user_email = '$user'");
}
return;
}
add_action('wp_authenticate', 'allow_email_login', 0, 2);
}}}
The problem is that when we import users (for example from an existing
fulfillment or billing system), we still have to create some sort of
(rather pointless) username that isn't used anywhere.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9568#comment:35>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list