changeset 93c0db46d74f in modules/web_user:5.6
details: https://hg.tryton.org/modules/web_user?cmd=changeset;node=93c0db46d74f
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 bfff4c01b9b5 -r 93c0db46d74f user.py
--- a/user.py   Mon May 04 12:35:39 2020 +0200
+++ b/user.py   Tue Oct 13 18:27:22 2020 +0200
@@ -207,7 +207,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:

Reply via email to