Bug #11318
Add login_required to password_change_view
Start date:
13 June 2016
Due date:
% Done:
0%
Estimated time:
Patch proposed:
Yes
Planning:
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'
Files
Associated revisions
History
Updated by Frédéric Péters over 6 years ago
- File 0001-misc-require-user-to-be-logged-in-to-access-password.patch 0001-misc-require-user-to-be-logged-in-to-access-password.patch added
- Description updated (diff)
- Status changed from Nouveau to En cours
- Patch proposed changed from No to Yes
I also added the sensitive_post_parameters decorator from the original view.
Updated by Mikaël Ates over 6 years ago
- File 0001-Login-required-for-change-password-view-fixes-11318.patch added
Ack
Updated by Mikaël Ates over 6 years ago
- File deleted (
0001-Login-required-for-change-password-view-fixes-11318.patch)
Updated by Frédéric Péters over 6 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)
misc: require user to be logged in to access password change view (#11318)