5

Better login URL handling for WHMCS integration


Avatar
Francisco Dias

The current system only allows generating the URL via command line. This should have a (documented?) JSON point.

It should be possible for an admin/reseller to be able to generate login URL's for their downstream customers allowing for better integration into WHMCS.

cPanel supports this which allows for someone to click 'Login to cPanel' inside of WHMCS and get sent right to their account.

Currently WHMCS just has an html FORM with the login/password as hidden fields. This is a huge security issue as well as breaks if the user ever changes their password inside of DA.

A

Activity Newest / Oldest

Avatar

smtalk

Hm.. did you try API for this? www.directadmin.com/features.php?id=2510

For example, URL with 1-time use:
POST /CMD_LOGIN_KEYS (OR CMD_API_LOGIN_KEYS)

Data (json=yes needed only for CMD_LOGIN_KEYS to output response in JSON):
max_uses: 1
clear_key: yes
allow_htm: yes
passwd: 7KccTAjf
json: yes
action: create
type: one_time_url
select_allow0: ALL_USER