瀏覽代碼

Update AdminInviteCommand, fix skip email validation flag

Daniel Supernault 2 年之前
父節點
當前提交
870dbd15df
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Console/Commands/AdminInviteCommand.php

+ 1 - 1
app/Console/Commands/AdminInviteCommand.php

@@ -119,7 +119,7 @@ class AdminInviteCommand extends Command
         $invite->description = $description;
         $invite->message = $message;
         $invite->max_uses = $max_uses;
-        $invite->skip_email_verification = $skipEmailVerification;
+        $invite->skip_email_verification = $skipEmailVerification === 'Yes';
         $invite->expires_at = $expires;
         $invite->invite_code = Str::uuid() . Str::random(random_int(1,6));
         $invite->save();