Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Cole Geissinger

    (@brainfestation)

    Definitely something to consider. I wanted to try and keep it within’ WordPress’ core processing for all the login and I have a feeling this would require some custom work. I’ll keep it in mind and take a look and see if it’s something I want to take on.

    As per Dheeraj Dhawan, you can insert the follwing snippet in your theme’s functions.php:

    add_filter('authenticate', 'allow_email_login', 20, 3);
    
    function allow_email_login( $user, $username, $password ) {
    	if (is_email($username)) {
    		$user = get_user_by_email( $username );
    		if ( $user ) $username = $user->user_login;
    	}
    	return wp_authenticate_username_password(null, $username, $password );
    }
    
    add_filter( 'gettext', 'addEmailToLoginPage', 20, 3 );
    
    function addEmailToLoginPage( $translated_text, $text, $domain ) {
    	if ( "Username" == $translated_text )
    		$translated_text .= __( ' Or Email');
    	return $translated_text;
    }

    This should solve the issue.

    Hello! I need some help! I hired a devloper to create a wordpess website for me. I paid him then he just dissapeared. I have the email the site is registered with but no way to get the password. Suggestions?

    Website: https://www.styledwheels.com

    The blog I need help with is styledwheels.wordpress.com.

    Plugin Author Cole Geissinger

    (@brainfestation)

    This issue is not related to this plugin, also this is a WordPress.com website which this plugin is not supported for.

    Please make sure to take your issue to WordPress.com where your website is hosted as this is not the appropriate support thread. If you have access to the email for your user account setup under, I would recommend clicking the Forgot Password link on the login screen https://styledwheels.WordPress.com/wp-admin

    I posted on wordpress.com and was told to post on www.remarpro.com. I have the email to login to the account but do not have access to it. That is my issue. Anyway around this?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How about Email login support?’ is closed to new replies.