Closed allan-simon closed 9 months ago
Cannot reproduce.
I changed the name and path of my check route, even added these extra host/requirements/default parameters to the route. Still works.
Is your /2fa_check
path within your firewall's pattern
? Because I can reproduce this error only when the check-path isn't covered by the firewall. Would you please post your firewall configuration, so we can have a look?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bundle version: 6.9.0 Symfony version: 6.3.5 PHP version: 8.1.20 Using authenticators (
enable_authenticator_manager: true
): YES (mandatory in 6.2+)Description
As in my project I have a routing based on subdomain and I will want in the future to have different 2fa configuration I was thinking to have dedicated login / check route for 2fa by doing
and in my
security.yaml
but then, even though the form was displaying correctly, when I was submitting it
I had the error:
and in the debug I was seeing a route
2fa_check
being matched , as it was added automatically by the bundle and overriding my routereverting back the route name to their original ones fixed the problem
Additional Context
Is it expected ? Which I may understand but in that case the documentation may stress out more that it must be these values