Share on Facebook0Tweet about this on Twitter0Share on Google+0Share on TumblrEmail this to someone

Login wordpress with email instead of username.Just copy and paste following code in function.php in current theme directory.

add_action( 'wp_authenticate', 'email_address_login' );


function email_address_login( &$username, &$password )
{
 $user = get_user_by( 'email', $username );
 if( !empty( $user->user_login ) )
 {
 $username = $user->user_login;
 }
}