astrosat / django-astrosat-users

Common backend library for Astrosat projects' user management
GNU General Public License v3.0
2 stars 0 forks source link

Client URLs (for confirming emails & passwords) should use the correct domain #25

Closed allynt closed 4 years ago

allynt commented 4 years ago

AccountAdapter.get_email_confirmation_url and AccountAdapter.get_password_confirmation_url both use build_absolute_uri on the request to generate a valid URL. Unfortunately, this is returning things like "localhost:8000/the/rest/of/the/path". For the @is_api case, I should inspect the incoming request for the referrer in order to get the real domain.

allynt commented 4 years ago

This has been done by #75 (and then later improved by #76).