Opened 16 years ago

Closed 16 years ago

Last modified 13 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: dev
Severity: Keywords:
Cc: richard.davies@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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@…> 16 years ago.

Download all attachments as: .zip

Change History (3)

by Richard Davies <richard.davies@…>, 16 years ago

comment:1 by Matt McClanahan, 16 years ago

Resolution: duplicate
Status: newclosed

Dup of #8129

comment:2 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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