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 Apr 12, 2024
1 parent 4b00cc6 commit 1b9785c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Pages/TwoFactorAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function getRelativeRouteName(): string

public function mount()
{
if (!Filament::auth()->user() instanceof RequireTwoFALogin) {
if (! Filament::auth()->user() instanceof RequireTwoFALogin) {
return redirect(Filament::getUrl());
}
$this->email = Filament::auth()->user()->email;

Check failure on line 50 in src/Pages/TwoFactorAuth.php

View workflow job for this annotation

GitHub Actions / phpstan

Access to an undefined property Illuminate\Foundation\Auth\User&Solutionforest\FilamentEmail2fa\Interfaces\RequireTwoFALogin::$email.
Expand All @@ -69,9 +69,7 @@ public function logout()
session()->regenerateToken();

return redirect()->to(

Filament::hasLogin() ? Filament::getLoginUrl() : Filament::getUrl(),

);
}

Expand Down

0 comments on commit 1b9785c

Please sign in to comment.