Skip to:
Content
Pages
Categories
Search
Top
Bottom

BBpress lost password form not showing message

  • @subrat4dc

    Participant

    Hi!,

    I have kept the shortcode for lost password in bbpress and after giving email address and clicking “reset password” button no message is showing in the page like “please check your mail with reset password link”.

    Please help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @robin-w

    Moderator

    yes I agree that would be better

    If you know how to add code to your childtheme functions file, then

    1. create a page called something like ‘Password Reset’ and put in the content the message you would like to display

    Make a note of the url of this

    2. Put this code into your functions file

    add_action ('bbp_get_wp_login_action', 'rew_lost_pass', 20, 3) ;
    
    function rew_lost_pass ($login_url, $r, $args) {
    //bail if this is not a lostpassword
    if ($r['action'] != 'lostpassword' ) {
    return apply_filters( 'bsp_lost_pass1', $login_url, $r, $args );
    }
    //so this is lost password so go to lost password login page
    $login_url = 'http://mysite.com/password_reset/' ;
    //$login_url = $r['context'] ;
    return apply_filters( 'bsp_lost_pass2', $login_url, $r, $args );

    and change the line

    $login_url = 'http://mysite.com/password_reset/' ;
    

    to whatever url you had in 1. above

    @georgeslangeard

    Participant

    Hello there,

    I know that this thread is quiet old but I got the same problem.

    There is no way for the user to know if the lost password request has been sent.

    I tried your code but it created a fatal issue on the site..

    Does anyone of you found a solution / alternative to this problem?

    Many thanks in advance for your help.

    georges

    @robin-w

    Moderator

    I tried your code but it created a fatal issue on the site..

    ok, can you post the exact code you used, and that you put this in your child theme functions file

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar