Skip to content

Commit

Permalink
Merge branch 'main' of github.com:vormkracht10/filament-two-factor-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Aug 23, 2024
2 parents 65026a8 + e65527e commit ca1d451
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Pages/TwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getConfirmationForm(): array
return [
TextInput::make('current_password')
->label(__('Password'))
->dehydrateStateUsing(fn($state) => filled($state))
->dehydrateStateUsing(fn ($state) => filled($state))
->required()
->password()
->inlineLabel()
Expand Down Expand Up @@ -172,8 +172,9 @@ public function disableAction(): Action
});
}

/**
* This method is used in the view
/**
* This method is used in the view
*
* @phpstan-ignore-next-line
* */
private function showTwoFactor(): bool
Expand Down Expand Up @@ -223,4 +224,4 @@ public function regenerateRecoveryCodes(GenerateNewRecoveryCodes $generate): voi

$this->showingRecoveryCodes = true;
}
}
}

0 comments on commit ca1d451

Please sign in to comment.