Feature Requests
Share ideas, discuss and vote on requests from other users in community
 

Custom Parameters Passed-Retrieve after dologin.php

Loubrando Dejito shared this idea 1 year ago
Under Consideration

Code:

$whmcsurl = "https://wwwdev.domain.net/dologin.php"; # URL to WHMCS API file

$autoauthkey = "SampleautoauthKey";

$timestamp = time();

$customparam= 'customavalue';

$email = $_GET['email']; # Clients Email Address to Login

$goto = "cart.php?a=add&pid=123&customparam=".$customparam;

$hash = sha1($email.$timestamp.$autoauthkey); # Generate Hash

Generate AutoAuth URL & Redirect$url = $whmcsurl."?email=$email&timestamp=$timestamp&hash=$hash&goto=".urlencode($goto);

After that, data are sent to dologin.php to auto authenticate, now I'm retrieving the customparam value using $_GET[customparam]. but when I do, it's blank. So I assume that after the auto authentication parameters were removed? I also tried creating hooks and setting sessions, but after dologin.php, all data disappears.

What I'm trying to do is to be able to retrieve the parameter I add in the URL after dologin.php.