Viewing 3 replies - 1 through 3 (of 3 total)
  • I was able to implement this by making a change in the plugin file /includes/modal-login-class.php.

    I changed this:
    $errors = new WP_Error();
    $sanitized_user_login = sanitize_user( $user_login );
    $user_email = apply_filters( ‘user_registration_email’, $user_email );

    to:
    $errors = new WP_Error();
    $user_email = apply_filters( ‘user_registration_email’, $user_email );
    $user_login = $user_email;
    $sanitized_user_login = sanitize_user( $user_login );

    Then I hid the username field using CSS display: none.

    p.s. I in no way recommend using my suggestion as I am a hobby-hack programmer and am probably breaking things. Also, you will have to make this change again if there is an update to the plugin. It does seem to be working for my users though. ??

    Thread Starter filipemus

    (@filipemus)

    Thanks for sharing!

    It works indeed. The only problem is that then the user is greeted with a “Hi [email protected]”, insead of his or her name…

    +1
    Should be able to login by e-mail..
    Please add this feature to the future update..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login with Mail’ is closed to new replies.