• I’m using Theme My Login to manage the login functions in my site. Right now, my problem is I want to make a page wherein the Reset Password form will be displayed on a page. I want the form to be the only thing there. There’s a reset password page that was automatically assigned by the plugin, but there’s no form there, you have to enter your email then that’s when you can change your password. What do I do so that I can use the form on a separate page?

    Below is the code for the reset password form. This is what I want in my page.

    <?php
    /*
    If you would like to edit this file, copy it to your current theme's directory and edit it there.
    Theme My Login will always look in your theme's directory first, before using this default template.
    */
    ?>
    <div class="login" id="theme-my-login<?php $template->the_instance(); ?>">
    	<?php $template->the_action_template_message( 'resetpass' ); ?>
    	<?php $template->the_errors(); ?>
    	<form name="resetpasswordform" id="resetpasswordform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'resetpass' ); ?>" method="post">
    		<p>
    			<label for="pass1<?php $template->the_instance(); ?>"><?php _e( 'New password' ); ?></label>
    			<input autocomplete="off" name="pass1" id="pass1<?php $template->the_instance(); ?>" class="input" size="20" value="" type="password" autocomplete="off" />
    		</p>
    
    		<p>
    			<label for="pass2<?php $template->the_instance(); ?>"><?php _e( 'Confirm new password' ); ?></label>
    			<input autocomplete="off" name="pass2" id="pass2<?php $template->the_instance(); ?>" class="input" size="20" value="" type="password" autocomplete="off" />
    		</p>
    
    		<div id="pass-strength-result" class="hide-if-no-js"><?php _e( 'Strength indicator' ); ?></div>
    
    		<p class="description indicator-hint"><?php _e( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ & ).' ); ?></p>
    
    		<?php do_action( 'resetpassword_form' ); ?>
    
    		<p class="submit">
    			<input type="submit" name="wp-submit" id="wp-submit<?php $template->the_instance(); ?>" value="<?php esc_attr_e( 'Reset Password' ); ?>" />
    			<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' ); ?>" />
    			<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
    			<input type="hidden" name="action" value="resetpass" />
    		</p>
    	</form>
    	<?php $template->the_action_links( array( 'lostpassword' => false ) ); ?>
    </div>

    Can someone help? Can what I want be done or do I really have to go through the email thing? I guess that’s done for security purposes.

  • The topic ‘[Plugin: Theme My Login] Reset Password form on a separate page’ is closed to new replies.