forked from ScoDoc/ScoDoc
Fix: réactivation de comptes scodoc7 bloqués
This commit is contained in:
parent
f628478b14
commit
44d832bbd5
@ -136,6 +136,8 @@ class User(UserMixin, db.Model):
|
|||||||
self.password_hash = generate_password_hash(password)
|
self.password_hash = generate_password_hash(password)
|
||||||
else:
|
else:
|
||||||
self.password_hash = None
|
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
|
self.passwd_temp = False
|
||||||
|
|
||||||
def check_password(self, password: str) -> bool:
|
def check_password(self, password: str) -> bool:
|
||||||
|
Loading…
Reference in New Issue
Block a user