What happened?
I'm using two panels, both with 2FA. One panel supports multi-tenancy, while the other doesn't. Right now, the config file is set globally, so when I try to enforce 2FA on the non-multi-tenant panel, it doesn't apply.
How to reproduce the bug
Create two panels—one with multi-tenancy enabled and one without—and enforce 2FA on both. Set the config to support multi-tenancy.
Repository
filament-2fa
Package Version
1.7.0
PHP Version
8.3
Laravel Version
10.10
Which operating systems does with happen with?
macOS
Notes
I can temporarily fix this by manually adding the middleware to the middleware group. The only issue is that I can’t add a closure to disable it in the local environment.
->middleware([
ForceTwoFactor::class,
])
What happened?
I'm using two panels, both with 2FA. One panel supports multi-tenancy, while the other doesn't. Right now, the config file is set globally, so when I try to enforce 2FA on the non-multi-tenant panel, it doesn't apply.
How to reproduce the bug
Create two panels—one with multi-tenancy enabled and one without—and enforce 2FA on both. Set the config to support multi-tenancy.
Repository
filament-2fa
Package Version
1.7.0
PHP Version
8.3
Laravel Version
10.10
Which operating systems does with happen with?
macOS
Notes
I can temporarily fix this by manually adding the middleware to the middleware group. The only issue is that I can’t add a closure to disable it in the local environment.
->middleware([ ForceTwoFactor::class, ])