소스 검색

Update UserCreate.php

Shlee 3 년 전
부모
커밋
330ed8ef82
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      app/Console/Commands/UserCreate.php

+ 7 - 0
app/Console/Commands/UserCreate.php

@@ -38,6 +38,8 @@ class UserCreate extends Command
      */
      */
     public function handle()
     public function handle()
     {
     {
+
+        
         $this->info('Creating a new user...');
         $this->info('Creating a new user...');
 
 
         $o = $this->options();
         $o = $this->options();
@@ -84,6 +86,11 @@ class UserCreate extends Command
             exit;
             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?');
         $is_admin = $this->confirm('Make this user an admin?');
         $confirm_email = $this->confirm('Manually verify email address?');
         $confirm_email = $this->confirm('Manually verify email address?');