Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jun 1, 2023
1 parent 28954f6 commit c1e4ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Listeners/RegisterValidate.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(TurnstileValidator $validator, SettingsRepositoryInt
public function handle(Saving $event)
{
// We also check for the actor's admin status, so that we can allow admins to create users from the admin panel without a Turnstile token.
if (! $event->user->exists && $this->settings->get('blomstra-turnstile.signup') && !$event->actor->isAdmin()) {
if (! $event->user->exists && $this->settings->get('blomstra-turnstile.signup') && ! $event->actor->isAdmin()) {
$this->validator->assertValid([
'turnstile' => Arr::get($event->data, 'attributes.turnstileToken'),
]);
Expand Down

0 comments on commit c1e4ec3

Please sign in to comment.