• Resolved Sander

    (@sander-falise)


    I noticed that the lost password e-mail wasn’t being sent because the password reset form I was using (also) accepted the users e-mail address (bbpress). A small addition to the the code fixed this; file bnfw.php line 627

    /**
    * Send notification for lost password.
    *
    * @since 1.0
    */
    function on_lost_password() {
    $user_login = sanitize_text_field( $_POST[ ‘user_login’ ] );
    $user = get_user_by( ‘login’, $user_login ) ?: get_user_by( ’email’, $user_login );
    if ( $user ) {
    $this->send_notification( ‘admin-password’, $user->ID );
    }
    }

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fixed lost password notification for e-mails instead of loginname’ is closed to new replies.