Solution: WHMCS & VESTACP Invalid Token Error
Posted: Mon Jan 20, 2020 2:51 pm
Hi Guys,
Simple solution
under web/login/index.php change the below lines
line 43 put //
// if(isset($_SESSION['token']) && isset($_POST['token']) && $_POST['token'] == $_SESSION['token'])
get { to line 35 by enter
line no 118 to 120 put //
//else {
// $ERROR = "<a class=\"error\">".__('Invalid or missing token')."</a>";
//}
Now templates/login.html
line no 13 put comment
<!-- <input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> -->
that's it enjoy your whmcs and vestacp integration.
Simple solution
under web/login/index.php change the below lines
line 43 put //
// if(isset($_SESSION['token']) && isset($_POST['token']) && $_POST['token'] == $_SESSION['token'])
get { to line 35 by enter
line no 118 to 120 put //
//else {
// $ERROR = "<a class=\"error\">".__('Invalid or missing token')."</a>";
//}
Now templates/login.html
line no 13 put comment
<!-- <input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> -->
that's it enjoy your whmcs and vestacp integration.