using existing bcrypt hashes is failing with django
Created originally on Bitbucket by Anonymous
After installing bcrypt and passlib using pip, I've set PASSWORD_HASHERS = ('passlib.handlers.bcrypt.bcrypt', ) in my django settings.
Trying to log in I get the TypeError "no salt specified". Using the same hash on a Python console, the password is correctly verified.
#!python
Python 3.4.3 (default, Mar 26 2015, 22:03:40)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from passlib.hash import bcrypt
>>> h = '$2a$10$PO5dw5E6G7xOxXbG3UdpP./JBh.A5adrG8XjKqWMwa9u7y//6g4KW'
>>> bcrypt.verify('adminpassword', h)
True