Check if password is atleast 8 characters long
This commit is contained in:
parent
22a59fcf58
commit
e5ede534ce
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue