Projet

Général

Profil

Development #52855

auth_fc: il manque un .save() après set_unusable_password dans backends

Ajouté par Benjamin Dauvergne il y a environ 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
08 avril 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Si aucun save() n'a lieu plus tard lors du mapping des attributs la valeur n'est pas sauvé et le hash en session est faux (il y a un hash du mot de passe hashé, un double hash donc, pour déconnecter les gens qui changent de mot de passe).


Fichiers


Demandes liées

Lié à Authentic 2 - Support #52851: auth_fc: à la première connexion, redirection vers /login au lieu de /accounts/editFermé08 avril 2021

Actions

Révisions associées

Révision 12fc2bca (diff)
Ajouté par Benjamin Dauvergne il y a environ 3 ans

auth_fc: save unusable password of new users (#52855)

Révision aa0e7696 (diff)
Ajouté par Benjamin Dauvergne il y a environ 3 ans

auth_fc: save forced mapping of first_name and last_name (#52855)

Historique

#1

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 3 ans

  • Lié à Support #52851: auth_fc: à la première connexion, redirection vers /login au lieu de /accounts/edit ajouté
#2

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

Sans le .save() le nouveau test plante sur le check status=200 :

                "Bad response: %s (not %s)\n%s", res_status, status, res)
E           webtest.app.AppError: Bad response: 302 Found (not 200)

../../../.tmp/tox-bdauvergne/authentic/authentic-py3-dj22-drf39/lib/python3.9/site-packages/webtest/app.py:683: AppError

car l'utilisateur loggé et l'utilisateur récupéré lors de la requête sur /accounts/ ont un hash de mot de passe qui diffère.

#3

Mis à jour par Serghei Mihai (congés, retour 15/05) il y a environ 3 ans

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

Mis à jour par Benjamin Dauvergne il y a environ 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit aa0e76960237d20114fce5da35ac9bc97d41efff
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Apr 8 11:18:22 2021 +0200

    auth_fc: save forced mapping of first_name and last_name (#52855)

commit 12fc2bca25882d2c777f62329ce5b852fe07247a
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Apr 8 11:16:18 2021 +0200

    auth_fc: save unusable password of new users (#52855)
#5

Mis à jour par Frédéric Péters il y a environ 3 ans

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

Formats disponibles : Atom PDF