WordPress.org

Ready to get started?Download WordPress

Forums

WP Modal Login
How about Email login support? (6 posts)

  1. Hassan
    Member
    Posted 1 year ago #

    There are some methods and plugins out there that enable you to login with your registered email address (instead of having to remember yet another username). Would be cool if we could get this built-in with this plugin.

    http://wordpress.org/extend/plugins/wp-modal-login/

  2. Cole Geissinger
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. neverminder
    Member
    Posted 8 months ago #

    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.

  4. styledwheels
    Member
    Posted 6 months ago #

    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: http://www.styledwheels.com

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

  5. Cole Geissinger
    Member
    Plugin Author

    Posted 6 months ago #

    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 http://styledwheels.WordPress.com/wp-admin

  6. styledwheels
    Member
    Posted 6 months ago #

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

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic