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.
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.