Projet

Général

Profil

Bug #11318

Add login_required to password_change_view

Ajouté par Mikaël Ates il y a presque 8 ans. Mis à jour il y a plus de 7 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
Début:
13 juin 2016
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
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'

Fichiers

Révisions associées

Révision c4f476cd (diff)
Ajouté par Frédéric Péters il y a presque 8 ans

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

Historique

#1

Mis à jour par Frédéric Péters il y a presque 8 ans

I also added the sensitive_post_parameters decorator from the original view.

#2

Mis à jour par Mikaël Ates il y a presque 8 ans

  • Fichier 0001-Login-required-for-change-password-view-fixes-11318.patch ajouté

Ack

#3

Mis à jour par Mikaël Ates il y a presque 8 ans

  • Fichier 0001-Login-required-for-change-password-view-fixes-11318.patch supprimé
#4

Mis à jour par Frédéric Péters il y a presque 8 ans

  • Statut changé de En cours à 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

Mis à jour par Benjamin Dauvergne il y a plus de 7 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF