Page 1 of 1

Solution: WHMCS & VESTACP Invalid Token Error

Posted: Mon Jan 20, 2020 2:51 pm
by birender
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.

Re: Solution: WHMCS & VESTACP Invalid Token Error

Posted: Thu Feb 13, 2020 1:35 pm
by roncooletz214
It works! But with this modifying login area, will there be no issues regarding security?