small bug fix where ptero id validation stopped working

This commit is contained in:
AVMG20 2021-06-12 17:05:54 +02:00
parent b181798ae4
commit 5aeacbd7fc

View file

@ -83,7 +83,7 @@ class UserController extends Controller
"role" => Rule::in(['admin', 'mod', 'client', 'member']),
]);
if (is_null($this->pterodactyl->getUser($request->input('pterodactyl_id')))) {
if (empty($this->pterodactyl->getUser($request->input('pterodactyl_id')))) {
throw ValidationException::withMessages([
'pterodactyl_id' => ["User does not exists on pterodactyl's panel"]
]);