I have installed dj-rest-auth and allauth. There are methods to reset the
password of an account. These methods use
django.contrib.auth.forms.PasswordResetForm and this sends an email to the
given email address with the template from
django/contrib/admin/templates/registration/password_reset_email.html.
There is no option in this template to set the port in the confirm
address.
For now i use a hack, where i put the port in the sites domain name, but i
think, there should be an option to set the port in this template:
https://github.com/django/django/blob/master/django/contrib/admin/templates/registration/password_reset_email.html#L6
--
Ticket URL: <https://code.djangoproject.com/ticket/32401>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Florian Apolloner (added)
* status: new => closed
* resolution: => needsinfo
Comment:
> For now i use a hack, where i put the port in the sites domain name, but
i think, there should be an option to set the port in this template
That is not a hack, see the
[https://docs.djangoproject.com/en/dev/ref/contrib/sites/#get-current-
site-shortcut get_current_site() docs]. `Site.domain` should contain the
port if `django.contrib.sites` is installed and the current `Site` is set.
If not, a `RequestSite` object based on the request is returned.
Maybe your Web server isn't setting the `SERVER_PORT` header
appropriately? or, if you're using `HTTP_X_FORWARDED_PORT`, it's a
duplicate of #31354.
--
Ticket URL: <https://code.djangoproject.com/ticket/32401#comment:1>