miguelgrinberg / flasky

Companion code to my O'Reilly book "Flask Web Development", second edition.
MIT License
8.54k stars 4.21k forks source link

Fix error #497

Closed smlee729 closed 3 years ago

smlee729 commented 3 years ago

Hi, I found one issue on the auth view.

https://github.com/miguelgrinberg/flasky/blob/924913ce6c3556267c25e61c2a14e1b6f528febc/app/auth/views.py#L93

The route should use underscore instead of hyphen.

miguelgrinberg commented 3 years ago

Why? The URL does not matter, since the application always uses url_for() to generate them in HTML templates.

smlee729 commented 3 years ago

Oh sorry you're right. Maybe web browser has obsolete cache or something. It's working fine as you say. Thanks!