Development #10775
Empêcher la déliaison si l'utilisateur n'a pas de mot de passe et ne peut en définir un.
100%
Description
Il est fait la supposition que si l'utilisateur se délie, le seul autre mécanisme possible d'authentification est le mot de passe.
Si l'utilisateur n'a pas de mot de passe et qu'il ne peut en définir un car A2_REGISTRATION_CAN_CHANGE_PASSWORD est à faux alors on empêche la déliaison.
Ce patch voit aussi l'utilisation du setting A2_REGISTRATION_SET_PASSWORD_FORM_CLASS plutôt que d'importer directement le formulaire.
Fichiers
Révisions associées
Hide unlinking link if the user has no password and can't set it (fixes #10775).
Prevent unlinking if the user has no password and can't set it (fixes #10775).
Unlinking is now prevented if the user has no usable password and can't
change it because A2_REGISTRATION_CAN_CHANGE_PASSWORD is False.
For now it is thus assumed that the password is the unique other mean of
authentication and unlinking would make the account unreachable.
Also use A2_REGISTRATION_SET_PASSWORD_FORM_CLASS setting instead of
importing the form.
Hide unlinking link if the user has no password and can't set it (fixes #10775).
Historique
Mis à jour par Mikaël Ates il y a environ 8 ans
- Fichier 0001-Hide-unlinking-link-if-the-user-has-no-password-and-.patch 0001-Hide-unlinking-link-if-the-user-has-no-password-and-.patch ajouté
Et le patch pour ne pas afficher le lien vers la vue.
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
You should not test CAN_CHANGE_PASSWORD two times, it's enough in dispatch(), so remove password_to_set().
Mis à jour par Mikaël Ates il y a environ 8 ans
- Fichier 0001-Prevent-unlinking-if-the-user-has-no-password-and-ca.patch 0001-Prevent-unlinking-if-the-user-has-no-password-and-ca.patch ajouté
Prefectly right.
Mis à jour par Mikaël Ates il y a environ 8 ans
- Fichier
0001-Prevent-unlinking-if-the-user-has-no-password-and-ca.patchsupprimé
Mis à jour par Mikaël Ates il y a environ 8 ans
- Statut changé de Nouveau à Résolu (à déployer)
- % réalisé changé de 0 à 100
Appliqué par commit authentic2-auth-fc|121e62a9e8b9d2b544ee9a27019f0d85b32f807d.
Mis à jour par Mikaël Ates il y a environ 8 ans
Appliqué par commit authentic2-auth-fc|ff30392ddcb06835d3a57ba629929df353a06d37.
Mis à jour par Benjamin Dauvergne il y a plus de 7 ans
- Statut changé de Résolu (à déployer) à Fermé
Prevent unlinking if the user has no password and can't set it (fixes #10775).