Code

Opened 6 years ago

Closed 6 years ago

Last modified 3 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:

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

Download all attachments as: .zip

Change History (3)

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

comment:1 Changed 6 years ago by mattmcc

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Dup of #8129

comment:2 Changed 3 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.