Skip to content

Commit

Permalink
Merge pull request #396 from mwdr-mjdventures/patch-1
Browse files Browse the repository at this point in the history
Allow User to back out of 2FA
  • Loading branch information
jeffgreco13 authored Jan 14, 2025
2 parents cd55682 + bec3c0e commit 1f0e91f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Pages/TwoFactorPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,16 @@ protected function getFormSchema(): array
</x-filament::link>')))
->required()
->extraInputAttributes(['class' => 'text-center', 'autocomplete' => $this->usingRecoveryCode ? 'off' : 'one-time-code'])
->autofocus(),
->autofocus()
->suffixAction(
FormAction::make('cancel')

Check failure on line 66 in src/Pages/TwoFactorPage.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to static method make() on an unknown class Jeffgreco13\FilamentBreezy\Pages\FormAction.

Check failure on line 66 in src/Pages/TwoFactorPage.php

View workflow job for this annotation

GitHub Actions / phpstan

Call to static method make() on an unknown class Jeffgreco13\FilamentBreezy\Pages\FormAction.
->ToolTip(__('filament-breezy::default.cancel'))
->icon('heroicon-o-x-circle')
->action(function () {
Filament::auth()->logout();
$this->mount();
})
),
];
}

Expand Down

0 comments on commit 1f0e91f

Please sign in to comment.