• Resolved jeffnapier

    (@jeffnapier)


    Hello Mohsin,
    Thanks so much for developing the plugin. I have a client with a need which may be rather common in the WordPress community. She needs people to be able to login with email addresses as well as usernames. I added this to my copy of your plugin. I’m suggesting you might want to include it in future releases, which may help a lot of people including us, in the case of updates:

    In /wp-content/plugins/wp-front-end-login-and-register/public/partials/class-wp-mp-register-login-public.php:

    After this line:

    $user = get_user_by(‘login’, $credentials[‘user_login’]);

    This line was added:

    if (!$user->ID) $user = get_user_by(’email’, $credentials[‘user_login’]);

    You might also like to change the label from “Username:” to something like “Email/Username:”

    Cheers! – Jeff ([email protected])

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Idea for WP Front-end login and register’ is closed to new replies.