From 44d832bbd5c3bfe6d0d2499aa9c2535bb034e119 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Thu, 9 Mar 2023 15:58:24 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20r=C3=A9activation=20de=20comptes=20scodo?= =?UTF-8?q?c7=20bloqu=C3=A9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/auth/models.py | 2 ++ 1 file changed, 2 insertions(+) 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: