Mercurial > kallithea
view dev_requirements.txt @ 6669:30d61922f24e
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".
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 11 Jun 2017 15:02:09 +0200 |
parents | d4e1692e25ab |
children | 02c820c5c48e |
line wrap: on
line source
babel >= 0.9.6, < 2.4 waitress >= 0.8.8, < 1.0 pytest ~= 3.0 pytest-runner pytest-sugar>=0.7.0 pytest-catchlog pytest-localserver mock sphinx webtest < 3