WordPress.org

Ready to get started?Download WordPress

Forums

Theme My Login
Resetpassword is now working (2 posts)

  1. Richa Jain
    Member
    Posted 10 months ago #

    Reset Password is working well please change following lines in resetpass-form.php in theme-my-login template

    Change:
    <input type="hidden" name="key" value="<?php $template->the_posted_value( 'key' ); ?>" />
    <input type="hidden" name="login" id="user_login" value="<?php $template->the_posted_value( 'login' ); ?>

    With this code (use this):
    <input type="hidden" name="key" value="<?php echo esc_attr($_GET['key']) ?>" />
    <input type="hidden" name="login" id="user_login" value="<?php echo esc_attr($_GET['login']); ?>" />

    http://wordpress.org/plugins/theme-my-login/

  2. Psychu
    Member
    Posted 6 months ago #

    I put to lostpassword page:

    <form name="lostpasswordform" id="lostpasswordform" action="http://zielone.info/wp-login.php?action=lostpassword" method="post">
    	<p>
    		<label for="user_login" >Nazwa użytkownika lub e-mail:<br />
    		<input type="text" name="user_login" id="user_login" class="input" value="" size="20" /></label>
    	</p>
    		<input type="hidden" name="redirect_to" value="" />
    	<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Zdobądź nowe hasło" /></p>
    </form>

    Then I create new one lostpassword-confirm page and put there:

    [theme-my-login]

    And change in wp-login.php

    $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'lostpassword-confirm/';

    and

    $redirect_to = !empty( $_POST['redirect_to'] ) ? $_POST['redirect_to'] : 'lostpassword-confirm/';

    Its's stupid, but work

Reply

You must log in to post.

About this Plugin

About this Topic