pterodactyl / whmcs

WHMCS Module for Pterodactyl (v0.7.3 and higher)
MIT License
185 stars 77 forks source link

Changing Username and Password does not work #64

Closed Nickolas00 closed 4 years ago

Nickolas00 commented 4 years ago

Hello,

Each time i want to change the username or password from Admin panel -> Module Commands -> Change Password got this: The password cannot be empty.

Well never mind i try to debug it by comment this line /* if($params['password'] === '') throw new Exception('The password cannot be empty.'); */

and add this:

// Debug
throw new Exception('Username result: ' .$params['username']. '| Password result: ' .$params['password']);

Returns:
Username result = empty
Password result = empty

Thank you.

TrixterTheTux commented 4 years ago

You need to save the username/password before clicking the change password button - this is how WHMCS works and not an issue with the module.

Nickolas00 commented 4 years ago

You need to save the username/password before clicking the change password button - this is how WHMCS works and not an issue with the module.

Ok i got it

P.S You can change the warning message into: The password cannot be empty. (please hit the "Save Changes" button and then hit again "Change Password" button) or something similar like this, maybe it helps for other people too.

Good joob Thanks