hcgcloud / pterodactyl-sdk

Pterodactyl Panel PHP SDK/API wrapper
https://hcgcloud.github.io/pterodactyl-sdk-docs/
MIT License
27 stars 25 forks source link

I can't create a user. #25

Closed SonDerpy closed 3 years ago

SonDerpy commented 3 years ago

So this is my code $user = $pterodactyl->createUser([ 'email' => '$user->email', 'username' => '$panelusername', 'password' => '$panelpassword', 'language' => 'en', 'root_admin' => false, 'first_name' => 'A', 'last_name' => 'user' ]); print_r($user);

When I try to create an account with that it gives me this error: Fatal error: Uncaught HCGCloud\Pterodactyl\Exceptions\ValidationException: The given data failed to pass validation.

SonDerpy commented 3 years ago

I fixed