Skip to content
Snippets Groups Projects
Commit 32e3c5c1 authored by Shamil K Muhammed's avatar Shamil K Muhammed
Browse files

Fix user logging in with any password

`bcrypt.hashpw` returns the password hashed with the same salt,
not if the password matches the hash. So to check if the
password is correct, the hash thus obtained should then be
compared, and then verified.

Also, diaspora just doesn't hash the password using bcrypt, it
appends a "pepper" to the password and then hashes it. So, when
checking the password, the pepper should be appended.
parent 8abad491
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment