From e5ede534cece47ef2e69f8a509e3ae7f55c63ba7 Mon Sep 17 00:00:00 2001 From: LogischJo <66436499+LogischJo@users.noreply.github.com> Date: Sun, 6 Jun 2021 22:01:42 +0200 Subject: [PATCH] Check if password is atleast 8 characters long --- app/Console/Commands/createUser.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Console/Commands/createUser.php b/app/Console/Commands/createUser.php index 97c8f684..0d7ea249 100644 --- a/app/Console/Commands/createUser.php +++ b/app/Console/Commands/createUser.php @@ -45,6 +45,13 @@ class createUser extends Command $password = $this->option('password') ?? $this->ask('Please specify your password.'); + + if (strlen($password) < 8) { + print_r('Your password need to be atleast 8 characters long'); + + return false; + }; + $response = Pterodactyl::getUser($ptero_id);