Fix: réactivation de comptes scodoc7 bloqués

This commit is contained in:
Emmanuel Viennet 2023-03-09 15:58:24 +01:00
parent f628478b14
commit 44d832bbd5

View File

@ -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: