Jump to content

External Login


Recommended Posts

On 7/31/2022 at 10:53 AM, JustGoHosting said:

Can you please detail what you are after abit more, 

 

if you want to login as the client you can goto the clients profile on the admin area then click "login as client"

 

Thank

Hi, I would like to use this method from another webpage by using WHMCS Admin API. How could I do?

Link to comment
Share on other sites

  • 3 weeks later...

Hi,

As I understand, You want to login as client in whmcs from the external website ( third party).  There is an method called "AutoAuth".  Here is example code. 

Quote

<?php
$whmcsurl = "https://www.example.com/dologin.php";
$autoauthkey = "auto_auth_key_goes_here";
 
$timestamp = time(); // Get current timestamp
$email = 'demo@whmcs.com'; // Clients Email Address to Login
$goto = 'clientarea.php?action=products';
 
$hash = sha1($email . $timestamp . $autoauthkey); // Generate Hash
 
// Generate AutoAuth URL & Redirect
$url = $whmcsurl . "?email=$email&timestamp=$timestamp&hash=$hash&goto=" . urlencode($goto);
header("Location: $url");
exit;

 

 

You can get more info https://docs.whmcs.com/AutoAuth
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated