Solution: WHMCS & VESTACP Invalid Token Error
Solution: WHMCS & VESTACP Invalid Token Error
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.
-
- Posts: 12
- Joined: Tue Nov 15, 2016 6:04 am
- Os: Ubuntu 15x
- Web: apache + nginx
Re: Solution: WHMCS & VESTACP Invalid Token Error
It works! But with this modifying login area, will there be no issues regarding security?