#32401: Email template for resetting password is missing the port the 
application
is running on
-------------------------------------+-------------------------------------
               Reporter:  Bergiu     |          Owner:  nobody
                   Type:  Bug        |         Status:  new
              Component:             |        Version:  3.1
  contrib.admin                      |       Keywords:  email template
               Severity:  Normal     |  reset
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 If the django application is running on a different port than 80 or 443
 the email template for resetting the password sends the wrong link for the
 confirmation.

 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.eae3d5124c017c1a4b9a854e4e8cf9fe%40djangoproject.com.

Reply via email to