Check if password is atleast 8 characters long

This commit is contained in:
LogischJo 2021-06-06 22:01:42 +02:00 committed by GitHub
parent 22a59fcf58
commit e5ede534ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);