Project

General

Profile

Bug #10266

/accounts/ is not protected by login_required()

Added by Benjamin Dauvergne almost 4 years ago. Updated about 3 years ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
Start date:
10 Mar 2016
Due date:
% Done:

100%

Patch proposed:
No
Planning:
No

Description

On authentic-demo.dev.entrouvert.org:

Internal Server Error: /accounts/
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/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 154, in get
    context = self.get_context_data(**kwargs)
  File "/usr/lib/python2.7/dist-packages/authentic2/views.py", line 380, in get_context_data
    field = request.user._meta.get_field(field_name)
  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 '_meta'

Associated revisions

Revision 091473a5 (diff)
Added by Benjamin Dauvergne almost 4 years ago

add login_required() decorator to /accounts/ view (fixes #10266)

History

#1 Updated by Benjamin Dauvergne almost 4 years ago

  • % Done changed from 0 to 100
  • Status changed from Nouveau to Résolu (à déployer)

#2 Updated by Benjamin Dauvergne about 3 years ago

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

Also available in: Atom PDF