Browse Source

update: reset user confirm

tokumeikoi 3 years ago
parent
commit
8eab09440b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/Console/Commands/ResetUser.php

+ 3 - 0
app/Console/Commands/ResetUser.php

@@ -42,6 +42,9 @@ class ResetUser extends Command
      */
     public function handle()
     {
+        if (!$this->confirm("确定要重置所有用户安全信息吗?")) {
+            return;
+        }
         ini_set('memory_limit', -1);
         $users = User::all();
         foreach ($users as $user)