• Hi,

    Lately, all installations of TML are coming up with this issue.

    The reset password email that comes through does not have a reset password link.

    As a workaround, we enabled the custom emails module and set the reset password link in that using %reseturl%. But the problem with this is that it takes the user to the wordpress admin reset password as against the tml reset password page.

    Help please…

    https://www.ads-software.com/plugins/theme-my-login/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Does the TML reset password page exist?

    Ross Wintle

    (@magicroundabout)

    This looks like an issue with the email template code.

    Fix is on line 1163 of theme-my-login/includes/class-theme-my-login.php (from version 6.4.4) which should be something like:

    $message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' ) . "\r\n";

    (There’s some additional markup which is making the link inside invalid HTML – there may be other more appropriate ways to fix this)

    Ross Wintle

    (@magicroundabout)

    I actually fixed this to use HTML code. I’m not sure if it was @jfarthing84’s intention to use HTML markup or leave link interpretation to the email client. In any case, here’s what I put in class-theme-my-login.php:

    $message = '<p>';
    		$message .= __( 'Someone requested that the password be reset for the following account:', 'theme-my-login' ) . "\r\n\r\n";
    		$message .= network_home_url( '/' ) . "\r\n\r\n";
    		$message .= '</p>';
    		$message .= '<p>';
    		$message .= sprintf( __( 'Username: %s', 'theme-my-login' ), $user_login ) . "\r\n\r\n";
    		$message .= '</p>';
    		$message .= '<p>';
    		$message .= __( 'If this was a mistake, just ignore this email and nothing will happen.', 'theme-my-login' ) . "\r\n\r\n";
    		$message .= '</p>';
    		$message .= '<p>';
    		$message .= __( 'To reset your password, visit the following address:', 'theme-my-login' ) . "\r\n\r\n";
    		$url = network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user_login ), 'login' );
    		$message .= '<a href="' . $url . '">' . $url . "</a>\r\n";
    		$message .= '</p>';
    Plugin Author Jeff Farthing

    (@jfarthing84)

    The default message used is that from WP core.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reset Passsword Issue // May 2016’ is closed to new replies.