Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Forced not working with multiple panels #57

Open
CodeWithDennis opened this issue Oct 25, 2024 · 0 comments
Open

[Bug]: Forced not working with multiple panels #57

CodeWithDennis opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@CodeWithDennis
Copy link
Contributor

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,
])
@CodeWithDennis CodeWithDennis added the bug Something isn't working label Oct 25, 2024
@Baspa Baspa self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants