• Hello,
    My site is password protected.
    Each user is registered and has it’s own password.
    When my users have forgoten their password they (try to) request a new one.
    They enter their user name and a wrong password.
    They get a message saying the password is wrong.
    Then they click on “forgotten password ?”
    They enter their user name or email address.
    Then they receive an email : “somebondy has requested… to renew your password please clic on the link :

    Problem : the email contains no url to click on

    • This topic was modified 6 years, 11 months ago by sudblivry.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Which WP version you are using ? Has it happened after any theme/Plugin or WP version up-gradation ?

    You can use filter to update this. Issue is due to WP is sending password in “<” and “>” and seems Google filter it and in the email there is no link.

    Try adding this code in your theme’s functions.php file where we are updating “<” and “>” to “(” and “)”.

    
    add_filter('retrieve_password_message', 'update_retrieve_password_message', 20, 4);
    
    function update_retrieve_password_message($message, $key, $user_login, $user_data) {
    	
    	$message = '(' . network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . ")\r\n";
    
    	return $message;
    }
    

    Let me know if that works for you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lost Pass WP users (registered) get the email but it contains no url to click’ is closed to new replies.