Skip to content

Conversation

kszys
Copy link
Contributor

@kszys kszys commented Sep 21, 2024

It seems that url manipulation in DefaultAuthForms in auth.py is missing any kind of consideration for the route setup in the Auth object. This results in the links failing every time if the route is anything but the default route='auth'.

This PR aims at fixing this by replacing static strings with dynamically created urls using the URL() helper and taking into consideration the value of the route paramter defined in the Auth object.

@kszys
Copy link
Contributor Author

kszys commented Sep 24, 2024

Added another commit, as I appear to miss a couple of redirects in the first one - became obvious when I tried to use the 2FA.

@mdipierro mdipierro merged commit b474ed0 into web2py:master Sep 27, 2024
5 checks passed
@kszys kszys deleted the DefaultAuthForms_fix branch September 27, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants