Code

Opened 3 years ago

Closed 3 years ago

#14979 closed (invalid)

Password reset stopped working in 1.2.4

Reported by: Loststylus Owned by: nobody
Component: Uncategorized Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Traceback:
File "/Library/Python/2.5/site-packages/django/core/handlers/base.py" in get_response
  100.                     response = callback(request, *callback_args, **callback_kwargs)
File "/Users/DataGreed/Work/job/site/sources/trunk/core/registration/authwrappers.py" in password_reset
  112.                            *args, **kwargs)
File "/Users/DataGreed/Work/job/site/sources/trunk/core/registration/authwrappers.py" in generic_wrapper
  30.     response = view_link(request, *args, **kwargs) 
File "/Library/Python/2.5/site-packages/django/utils/decorators.py" in _wrapped_view
  76.                     response = view_func(request, *args, **kwargs)
File "/Library/Python/2.5/site-packages/django/contrib/auth/views.py" in password_reset
  121.             form.save(**opts)

Exception Type: TypeError at /user/password/recover/
Exception Value: save() got an unexpected keyword argument 'request'

Worked normally before 1.2.4

In django.contrib.auth.views.py there's a line:

            opts['request'] = request

Seems this is cauding the trouble, because the form.save method then raises the actual exception.

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by Loststylus

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

wait, seems it's my bad - i use custom form

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.