From 330ed8ef8296dd001fd32f8d59e3d968212f753a Mon Sep 17 00:00:00 2001 From: Shlee Date: Sun, 5 Jun 2022 15:19:54 +0930 Subject: [PATCH 1/3] Update UserCreate.php --- app/Console/Commands/UserCreate.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php index 77c175090..aa387f3b1 100644 --- a/app/Console/Commands/UserCreate.php +++ b/app/Console/Commands/UserCreate.php @@ -38,6 +38,8 @@ class UserCreate extends Command */ public function handle() { + + $this->info('Creating a new user...'); $o = $this->options(); @@ -84,6 +86,11 @@ class UserCreate extends Command exit; } + if (strlen($password) < 6) { + $this->error('Must be 6 or more characters, please try again...'); + exit; + } + $is_admin = $this->confirm('Make this user an admin?'); $confirm_email = $this->confirm('Manually verify email address?'); From 95a22b7b5562cd0524bfbbf88b7ccdfd30660cd4 Mon Sep 17 00:00:00 2001 From: Shlee Date: Sun, 5 Jun 2022 15:20:43 +0930 Subject: [PATCH 2/3] Update UserCreate.php --- app/Console/Commands/UserCreate.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php index aa387f3b1..8dbc583b8 100644 --- a/app/Console/Commands/UserCreate.php +++ b/app/Console/Commands/UserCreate.php @@ -37,9 +37,7 @@ class UserCreate extends Command * @return mixed */ public function handle() - { - - + { $this->info('Creating a new user...'); $o = $this->options(); From 8c31bd4c682496425f289b9eabe548116d7aac9e Mon Sep 17 00:00:00 2001 From: Shlee Date: Sun, 5 Jun 2022 15:20:57 +0930 Subject: [PATCH 3/3] Update UserCreate.php --- app/Console/Commands/UserCreate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php index 8dbc583b8..00616af65 100644 --- a/app/Console/Commands/UserCreate.php +++ b/app/Console/Commands/UserCreate.php @@ -37,7 +37,7 @@ class UserCreate extends Command * @return mixed */ public function handle() - { + { $this->info('Creating a new user...'); $o = $this->options();