changeset 153d38eeca62 in modules/web_user:5.0 details: https://hg.tryton.org/modules/web_user?cmd=changeset;node=153d38eeca62 description: Return also None as new hash from check_password when there is no hash
issue9712 review306701002 (grafted from b5fd12ab71df3aec990693747f119137278051cf) diffstat: user.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r beb1eddc6be7 -r 153d38eeca62 user.py --- a/user.py Sat Apr 04 18:07:32 2020 +0200 +++ b/user.py Tue Oct 13 18:27:22 2020 +0200 @@ -208,7 +208,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: