Update AdminInviteCommand, fix skip email validation flag

This commit is contained in:
Daniel Supernault 2022-12-19 22:49:22 -07:00
parent 8a1fa38550
commit 870dbd15df
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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();