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 Jan 8, 2025
1 parent 9b790b5 commit 24267f4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/FilamentEmail2faPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Solutionforest\FilamentEmail2fa;

use Filament\Contracts\Plugin;
use Filament\Pages\Page;
use Filament\Panel;
use Solutionforest\FilamentEmail2fa\Middlewares\IsTwoFAVerified;
use Solutionforest\FilamentEmail2fa\Pages\LoginSuccessPage;
Expand All @@ -22,7 +21,7 @@ public function register(Panel $panel): void
{
$fapage = config('filament-email-2fa.2fa_page', TwoFactorAuth::class);
$pages = [];
if($this->loginSuccessPage == null){
if ($this->loginSuccessPage == null) {
$pages[] = config('filament-email-2fa.login_success_page', LoginSuccessPage::class);
}

Expand Down
2 changes: 1 addition & 1 deletion src/FilamentEmail2faServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function packageBooted(): void
}

// Testing
Testable::mixin(new TestsFilamentEmail2fa());
Testable::mixin(new TestsFilamentEmail2fa);

$this->app->bind(LoginResponseContract::class, TwoFAResponse::class);

Expand Down
2 changes: 1 addition & 1 deletion src/Pages/TwoFactorAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function save()

return app(LoginSuccessResponse::class);
} else {
throw new InvalidTwoFACodeException();
throw new InvalidTwoFACodeException;
}
} catch (InvalidTwoFACodeException $e) {
$this->addError('data.2fa_code', $e->getMessage());
Expand Down
1 change: 0 additions & 1 deletion src/Responses/LoginSuccessResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Filament\Facades\Filament;
use Filament\Http\Responses\Auth\Contracts\LoginResponse as LoginResponseContract;
use Solutionforest\FilamentEmail2fa\Pages\LoginSuccessPage;

class LoginSuccessResponse implements LoginResponseContract
{
Expand Down

0 comments on commit 24267f4

Please sign in to comment.