Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Solution: WHMCS & VESTACP Invalid Token Error

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
birender
Posts: 26
Joined: Fri Aug 19, 2016 6:58 am

Os: Debian 8x
Web: nginx + php-fpm
Solution: WHMCS & VESTACP Invalid Token Error
  • Quote

Post by birender » 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.
Top

roncooletz214
Posts: 12
Joined: Tue Nov 15, 2016 6:04 am

Os: Ubuntu 15x
Web: apache + nginx
Re: Solution: WHMCS & VESTACP Invalid Token Error
  • Quote

Post by roncooletz214 » Thu Feb 13, 2020 1:35 pm

It works! But with this modifying login area, will there be no issues regarding security?
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password