changeset b5fd12ab71df in modules/web_user:default
details: https://hg.tryton.org/modules/web_user?cmd=changeset;node=b5fd12ab71df
description:
Return also None as new hash from check_password when there is no hash
issue9712
review306701002
diffstat:
user.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r f5212c879495 -r b5fd12ab71df user.py
--- a/user.py Mon Oct 12 18:11:20 2020 +0200
+++ b/user.py Tue Oct 13 18:27:22 2020 +0200
@@ -209,7 +209,7 @@
@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: