I followed this tutorial on how to build a login form in Symfony 3 and everything works fine.
However I'd like to use the same login form on multiple pages ("/" and "/login"). Unfortunately I can always get only one of these pages working based on how I configure the "login_path" and "check_path" in security.yaml.
So it's either
form_login: login_path: login check_path: login
form_login: login_path: / check_path: /
I've tried to add another firewall specifically for the login page to use both at once, but without success, my form on /login would then seem to submit and would redirect to default_target_path, but the user wouldn't be logged in. I've also tried to set the 'action' variable in the function createForm in controller to make the login form submit to /login even on the index page, but that didn't work either.
Any ideas on how to solve this issue ?