From 714c08130e72dc56a413938ffa47feba150640ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Tarroja=20Caubet?= Date: Tue, 13 Oct 2020 18:27:22 +0200 Subject: [PATCH] Return also None as new hash from check_password when there is no hash issue9712 review306701002 --- user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.py b/user.py index b5a2bfe91d..4bc3dd8d5f 100644 --- a/user.py +++ b/user.py @@ -209,7 +209,7 @@ class User(DeactivableMixin, ModelSQL, ModelView): @classmethod def check_password(cls, password, hash_): if not hash_: - return False + return False, None try: return CRYPT_CONTEXT.verify_and_update(password, hash_) except ValueError: