diff --git a/app/auth/models.py b/app/auth/models.py index af0d76037..5e241c712 100644 --- a/app/auth/models.py +++ b/app/auth/models.py @@ -136,6 +136,8 @@ class User(UserMixin, db.Model): self.password_hash = generate_password_hash(password) else: self.password_hash = None + # La création d'un mot de passe efface l'éventuel mot de passe historique + self.password_scodoc7 = None self.passwd_temp = False def check_password(self, password: str) -> bool: