Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
angielam authored and github-actions[bot] committed Jun 21, 2024
1 parent 979377f commit 60d2b96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Responses/TwoFAResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ public function toResponse($request)
{
// return whatever you want as url

if (Filament::getCurrentPanel()->hasPlugin('filament-email-2fa')){
if (Filament::getCurrentPanel()->hasPlugin('filament-email-2fa')) {
Filament::auth()->user()->send2FAEmail();

Check failure on line 22 in src/Responses/TwoFAResponse.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to an undefined method Illuminate\Foundation\Auth\User::send2FAEmail().

return redirect()->intended(route(TwoFactorAuth::getRouteName()));
}


return redirect()->intended(Filament::getUrl());

}
Expand Down

0 comments on commit 60d2b96

Please sign in to comment.