Hello,
I am trying to log in to DirectAdmin Evolution panel automatically using the API.
However, the panel still asks for the username and password instead of logging in automatically.
Here is the data I use to create the key:
php
$postData = [
'action' => 'create',
'type' => 'key',
'keyname' => 'tempkey123',
'key' => 'Tmp1234!Aa@5678',
'key2' => 'Tmp1234!Aa@5678',
'never_expires' => 'no',
'expiry_timestamp' => time() + 300,
'max_uses' => 1,
'clear_key' => 'yes',
'allow_html' => 'yes',
'passwd' => 'admin_password',
'for_user' => 'testuser',
'select_allow0' => 'ALL_USER'
];
The response from CMD_API_LOGIN_KEYS indicates that the key was created successfully.
But when I use:
perl
the Evolution panel still requests a login.
Am I missing a required parameter or step to log in automatically with a Login Key?
Thank you for your help!
I am trying to log in to DirectAdmin Evolution panel automatically using the API.
- I successfully generate a temporary Login Key via CMD_API_LOGIN_KEYS. The response looks correct and contains the key.
- I then try to open the DirectAdmin panel using CMD_LOGIN with the username and the generated key, either via curl or a POST form in the browser.
However, the panel still asks for the username and password instead of logging in automatically.
Here is the data I use to create the key:
php
$postData = [
'action' => 'create',
'type' => 'key',
'keyname' => 'tempkey123',
'key' => 'Tmp1234!Aa@5678',
'key2' => 'Tmp1234!Aa@5678',
'never_expires' => 'no',
'expiry_timestamp' => time() + 300,
'max_uses' => 1,
'clear_key' => 'yes',
'allow_html' => 'yes',
'passwd' => 'admin_password',
'for_user' => 'testuser',
'select_allow0' => 'ALL_USER'
];
The response from CMD_API_LOGIN_KEYS indicates that the key was created successfully.
But when I use:
perl
the Evolution panel still requests a login.
Am I missing a required parameter or step to log in automatically with a Login Key?
Thank you for your help!