Files @ 30d61922f24e
Branch filter:

Location: kallithea/docs/dev/translation.rst - annotation

30d61922f24e 61 B text/prs.fallenstein.rst Show Source Show as Raw Download as Raw
Mads Kiilerich
auth: fix crash on invalid bcrypt password

When an invalid password was specified, it would with an exception:

File "kallithea/lib/auth.py", in check_password
return bcrypt.checkpw(safe_str(password), safe_str(hashed))
ValueError: Invalid hashed_password salt

We do apparently have to catch ValueError and treat it as "invalid password".
.. _translations:
.. include:: ./../../kallithea/i18n/how_to