aonap Posted April 22, 2020 Share Posted April 22, 2020 The following hook is in place (see below) however the reset button does not seem to work: <?php if (!defined("WHMCS")) die("This file cannot be accessed directly"); function hook_ForceEveryoneToLogin($vars) { $client = Menu::context('client'); $validpages = array("login","dologin","clientarea","pwreset"); if (!$client && !in_array($vars['filename'],$validpages)) { header("Location: login.php"); exit; } } add_hook("ClientAreaPage", 1, "hook_ForceEveryoneToLogin"); Thank! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 22, 2020 Share Posted April 22, 2020 I think in recent versions, because of the changes to the password resetting templates, you might have to include index in that list... 0 Quote Link to comment Share on other sites More sharing options...
aonap Posted May 14, 2020 Author Share Posted May 14, 2020 On 4/22/2020 at 2:31 PM, brian! said: I think in recent versions, because of the changes to the password resetting templates, you might have to include index in that list... Thank you! Legend! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.