Author Topic: User panel login link  (Read 182 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
User panel login link
« on: August 30, 2024, 08:28:06 PM »
I am trying to make a module and within that module i want to display the username.
I want the username to be a link to quickly login to the users panel.
How do i create that link?

it looks something like this:
https://server.com:2083/?token=9ebc98eaab54c6adf811bdb9b9f7cf8e.69d90e45504f42990d8ebc1c3b3eb29e.06209e1fa38dc59fd762ab1e4ccc0efc.9a391c1f502d39f61a4f39b2ace1528a

Offline
**
Re: User panel login link
« Reply #1 on: September 03, 2024, 01:18:17 PM »
Use the API function autologin:

Url:    https://xxx.xxx.xxx.xxx:2304/v1/user_session
Method:    POST

key:    Key authorized by Api administrator
action:    list
user:    Account username (If not specified, a list of accounts will be displayed)
timer:    Expiration time of the session, expressed in Minute, example 2
module:    Indicate the name of the module to be redirected
debug:    (0 / 1) Debug display file: /var/log/cwp/cwp_api.log