Reset Password Not Working
-
Hi Kevin
I’m using the following code for my site.
function my_forcelogin_bypass( $bypass, $visited_url ) { // Allow all single posts if ( is_single() ) { $bypass = true; } // Allow these absolute URLs $allowed = array( home_url( '/registration/' ), home_url( '/lostpassword/' ), home_url( '/resetpass/?' . $_SERVER['QUERY_STRING'] ), home_url( '/resetpass.php?' . $_SERVER['QUERY_STRING'] ), ); if ( ! $bypass ) { $bypass = in_array( $visited_url, $allowed ); } return $bypass; } add_filter( 'v_forcelogin_bypass', 'my_forcelogin_bypass', 10, 2 );
I can get to the registration page with no problems. But when I request a password reset, the link I get from WP (https://web-url-here.com/resetpass/?key=CbefWxxFNCMzJcupFxkA&login=user-name) takes me back to the login page and doesn’t allow for the reset. What am I doing wrong?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Reset Password Not Working’ is closed to new replies.