stephenjude / filament-two-factor-authentication

Add two factor authentication (2FA) to Filament panels.
MIT License
34 stars 7 forks source link

[Bug]: 2FA is not required by login #8

Closed laraben closed 3 weeks ago

laraben commented 3 weeks ago

What happened?

Hi, i've followed all the steps and setup a 2FA. But when i log out and log back in. It doesnt ask for the 2FA. The first time ive logged in, it asked to setup my 2FA. But when i log in it never ask for it

How to reproduce the bug

Hi, i've followed all the steps and setup a 2FA. But when i log out and log back in. It doesnt ask for the 2FA. The first time ive logged in, it asked to setup my 2FA. But when i log in it never ask for it

Package Version

0.0.8

PHP Version

8.2

Laravel Version

11

Which operating systems does with happen with?

macOS

Notes

Hi, i've followed all the steps and setup a 2FA. But when i log out and log back in. It doesnt ask for the 2FA. The first time ive logged in, it asked to setup my 2FA. But when i log in it never ask for it

laraben commented 3 weeks ago

ok i've found it, i had to add: use Stephenjude\FilamentTwoFactorAuthentication\Pages\Login;

final class AdminPanelProvider extends PanelProvider { public function panel(Panel $panel): Panel { return $panel ->default() ->id('admin') ->path('admin') ->login(Login::class)