Reply To: Password Protection Bug is back in latest version

Home Forums Pie-Register 2.0 Support Password Protection Bug is back in latest version Reply To: Password Protection Bug is back in latest version

#2301

PR Team Member
Keymaster

Hello

Here’s the patch for the problem.
If you are not convenient modifying Code please download the patch file using This Link.

For all others Please follow the follow the instructions below:

1.) open up pie-register.php in a html editor.
2.) Find the function pie_main() go to line where it reads:


if((is_user_logged_in() && $pagenow == 'wp-login.php') && ($option['redirect_user']==1   && $theaction != 'logout'))
{
	if(!isset($_REQUEST['interim-login'])){
		$this->afterLoginPage();
	}
}

Please replace the above code with the following code snippet:


if($theaction != 'logout' && $theaction != 'postpass' )
{
	if((is_user_logged_in() && $pagenow == 'wp-login.php') && ($option['redirect_user']==1   && $theaction != 'logout'))
	{
		if(!isset($_REQUEST['interim-login'])){
			$this->afterLoginPage();
		}
	}
}

Save the file, and you’re done!

I hope it helps, please let us know if you have further questions or queries.

Thanks
Pie-Register Team