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

kmom02 form/login ger felmeddelande när man postar formuläret #47

Open
mosbth opened this issue Apr 6, 2022 · 0 comments
Open

kmom02 form/login ger felmeddelande när man postar formuläret #47

mosbth opened this issue Apr 6, 2022 · 0 comments
Assignees
Labels
bug Something isn't working solution exists

Comments

@mosbth
Copy link
Member

mosbth commented Apr 6, 2022

Felet blir.

No route found for "POST https://www.student.bth.se/~mosstud/dbwebb-kurser/mvc/me/report/public/form/login": Method Not Allowed (Allow: GET, HEAD)

När man debuggar de routes som finns via bin/console debug:router så ser man att routen POST form/login inte finns med i listan.

Problemet visade sig vara namngivningen av routesen. Jag hade kopierat kod från FormLoginController till FormSessionController och missat att byta namn på den namngivna routen. Resultatet blev att det var samma namn på två routes och endast den sista routen blev alltså aktiv.

Jag rättar koden i example/symfony-get-post-session/FormSessionController.php och pushar till kursrepot.

@mosbth mosbth self-assigned this Apr 6, 2022
@mosbth mosbth added bug Something isn't working solution exists labels Apr 6, 2022
mosbth added a commit that referenced this issue Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solution exists
Projects
None yet
Development

No branches or pull requests

1 participant