Django

Code

Ticket #8451 (closed: duplicate)

Opened 3 months ago

Last modified 3 months ago

Fix URL in e-mails sent out by password reset

Reported by: Richard Davies <richard.davies@elastichosts.com> Assigned to: nobody
Milestone: 1.0 Component: Authentication
Version: SVN Keywords:
Cc: richard.davies@elastichosts.com Triage Stage: Unreviewed
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

fix_password_reset_confirm_path.diff (1.8 kB) - added by Richard Davies <richard.davies@elastichosts.com> on 08/20/08 10:53:00.

Change History

08/20/08 10:53:00 changed by Richard Davies <richard.davies@elastichosts.com>

  • attachment fix_password_reset_confirm_path.diff added.

08/24/08 00:18:16 changed by mattmcc

  • status changed from new to closed.
  • needs_better_patch changed.
  • resolution set to duplicate.
  • needs_tests changed.
  • needs_docs changed.

Dup of #8129


Add/Change #8451 (Fix URL in e-mails sent out by password reset)




Change Properties
Action