Hello,
I am trying to migrate to Tryton 7.6 but when I try to log in I get this error.
Traceback (most recent call last):
File "/trytond/wsgi.py", line 97, in dispatch_request
return endpoint(request, **request.view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/protocols/dispatcher.py", line 44, in rpc
return methods.get(request.rpc_method, _dispatch)(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/protocols/dispatcher.py", line 54, in login
session = security.login(
^^^^^^^^^^^^^^^
File "/trytond/security.py", line 47, in login
user_id = User.get_login(loginname, parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/res/user.py", line 679, in get_login
user_ids.add(func(login, parameters))
^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/res/user.py", line 727, in _login_password
valid, new_hash = cls.check_password(password, password_hash)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/trytond/res/user.py", line 751, in check_password
return PASSWORD_HASH.verify_and_update(password, hash_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/pwdlib/_hash.py", line 119, in verify_and_update
raise exceptions.UnknownHashError(hash)
pwdlib.exceptions.UnknownHashError: This hash can't be identified. Make sure it's valid and that its corresponding hasher is enabled.
As I understand pwdlib works with argon and/or bcrypt, and the old password used scrypt/bcrypt/ pbkdf2_sha512. The doc says to update old passwords by logging in
but I can’t log in without getting an error.