mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Fixing password verification for sha256.
This commit is contained in:
@@ -55,7 +55,7 @@ class PasswordHasher(object):
|
||||
:return: True if passwords match, False otherwise
|
||||
"""
|
||||
return constant_time_compare(
|
||||
self._encrypt(clearvalue, hashed_value),
|
||||
self._b64encode(self._encrypt(clearvalue, hashed_value)),
|
||||
hashed_value
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user