Projet

Général

Profil

Development #33226

crash sur changement d'email quand mot de passe unicode

Ajouté par Frédéric Péters il y a presque 5 ans. Mis à jour il y a presque 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
17 mai 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

File "/usr/lib/python2.7/dist-packages/authentic2/forms/__init__.py" in clean_password
  59.         if not self.user.check_password(password):

File "/usr/lib/python2.7/dist-packages/django/contrib/auth/base_user.py" in check_password
  118.         return check_password(raw_password, self.password, setter)

File "/usr/lib/python2.7/dist-packages/django/contrib/auth/hashers.py" in check_password
  52.     is_correct = hasher.verify(password, encoded)

File "/usr/lib/python2.7/dist-packages/authentic2/hashers.py" in verify
  76.         encoded_2 = self.encode(password, salt, int(iterations))

File "/usr/lib/python2.7/dist-packages/authentic2/hashers.py" in encode
  70.             h = self.digest(h + password).digest()

Exception Type: UnicodeDecodeError at /accounts/change-email/
Exception Value: 'ascii' codec can't decode byte 0xc3 in position 12: ordinal not in range(128)

Fichiers

Révisions associées

Révision 92c829dd (diff)
Ajouté par Benjamin Dauvergne il y a presque 5 ans

hashers: convert salt to bytes before concatenation (#33226)

Historique

#1

Mis à jour par Benjamin Dauvergne il y a presque 5 ans

On est dans le hasher Drupal7.... pfiou.

#2

Mis à jour par Benjamin Dauvergne il y a presque 5 ans

  • Assigné à mis à Benjamin Dauvergne
#3

Mis à jour par Benjamin Dauvergne il y a presque 5 ans

#4

Mis à jour par Paul Marillonnet il y a presque 5 ans

  • Statut changé de Solution proposée à Solution validée
#5

Mis à jour par Benjamin Dauvergne il y a presque 5 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 92c829dd3a774e8eaa25b09bd3c2f0192cd1ebc6
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Fri May 17 20:57:50 2019 +0200

    hashers: convert salt to bytes before concatenation (#33226)
#6

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

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF