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

Fix the way href's are being set in DefaultAuthForms #922

Merged
merged 2 commits into from
Sep 27, 2024

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