Development #33226
crash sur changement d'email quand mot de passe unicode
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
Historique
Mis à jour par Benjamin Dauvergne il y a presque 5 ans
- Fichier 0001-hashers-convert-salt-to-bytes-before-concatenation-3.patch 0001-hashers-convert-salt-to-bytes-before-concatenation-3.patch ajouté
- Tracker changé de Bug à Development
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Paul Marillonnet il y a presque 5 ans
- Statut changé de Solution proposée à Solution validée
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)
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
hashers: convert salt to bytes before concatenation (#33226)