[Plugin: Theme My Login] Fix for Invalid Key Password Reset
-
Using WordPress 3.2.1 and Theme My Login 6.1.4 I noticed the password reset was broken (gives an invalid key error), I thought I would share how I fixed this:
See /plugins/theme-my-login/templates/resetpass-form.php OR edit the ‘resetpass-form.php’ inside your theme folder if you’ve copied across already.
Find:
<input type="hidden" name="key" value="<?php $template->the_posted_value( 'key' ); ?>" /> <input type="hidden" name="login" id="user_login" value="<?php $template->the_get_value( 'login' ); ?>" />
Replace With:
<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']); ?>" />
Hopefully it saves somebody a few minutes trying to find the problem.
Jason
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Theme My Login] Fix for Invalid Key Password Reset’ is closed to new replies.