Project

General

Profile

Bug #11318

Add login_required to password_change_view

Added by Mikaël Ates about 3 years ago. Updated over 2 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
13 Jun 2016
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

Internal Server Error: /accounts/password/change/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 111, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/authentic2/decorators.py", line 28, in f
    return func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/authentic2/profile_urls.py", line 28, in password_change_view
    if not request.user.has_usable_password():
  File "/usr/lib/python2.7/dist-packages/django/utils/functional.py", line 225, in inner
    return func(self._wrapped, *args)
AttributeError: 'AnonymousUser' object has no attribute 'has_usable_password'

0001-misc-require-user-to-be-logged-in-to-access-password.patch View (1.5 KB) Frédéric Péters, 14 Jun 2016 09:35 AM

Associated revisions

Revision c4f476cd (diff)
Added by Frédéric Péters about 3 years ago

misc: require user to be logged in to access password change view (#11318)

History

#1 Updated by Frédéric Péters about 3 years ago

I also added the sensitive_post_parameters decorator from the original view.

#2 Updated by Mikaël Ates about 3 years ago

  • File 0001-Login-required-for-change-password-view-fixes-11318.patch added

Ack

#3 Updated by Mikaël Ates about 3 years ago

  • File deleted (0001-Login-required-for-change-password-view-fixes-11318.patch)

#4 Updated by Frédéric Péters about 3 years ago

  • Status changed from En cours to Résolu (à déployer)
commit c4f476cdca63690a5afb211e61b11d93359ca31e
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Tue Jun 14 09:34:28 2016 +0200

    misc: require user to be logged in to access password change view (#11318)

#5 Updated by Benjamin Dauvergne over 2 years ago

  • Status changed from Résolu (à déployer) to Fermé

Also available in: Atom PDF