Opened 10 years ago

Closed 10 years ago

Last modified 7 years ago

#8451 closed (duplicate)

Fix URL in e-mails sent out by password reset

Reported by: Richard Davies <richard.davies@…> Owned by: nobody
Component: contrib.auth Version: master
Severity: Keywords:
Cc: richard.davies@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The authentication framework as a built in view (django.contrib.auth.views.password_reset) and form (django.contrib.auth.forms.PasswordResetForm) which send a user an e-mail inviting them to reset their password.

The e-mail assumes that the view 'django.contrib.auth.views.password_reset_confirm' will be at "{{ protocol }}:{{ domain }}/reset/{{ uid }}-{{ token }}/", whereas in fact it might be anywhere.

This patch calls reverse() to generate the correct URL for the e-mail.

Attachments (1)

fix_password_reset_confirm_path.diff (1.8 KB) - added by Richard Davies <richard.davies@…> 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Richard Davies <richard.davies@…>

comment:1 Changed 10 years ago by Matt McClanahan

Resolution: duplicate
Status: newclosed

Dup of #8129

comment:2 Changed 7 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top