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
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
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