diff options
-rwxr-xr-x | Authenticators/SMF/2.0/smfauth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Authenticators/SMF/2.0/smfauth.py b/Authenticators/SMF/2.0/smfauth.py index 2f20121..fb428f4 100755 --- a/Authenticators/SMF/2.0/smfauth.py +++ b/Authenticators/SMF/2.0/smfauth.py @@ -805,7 +805,7 @@ def smf_check_hash(password, hash, username): """ Python implementation of the smf check hash function """ - return sha1(username.lower().encode('utf8') + password).hexdigest() == hash + return sha1((username.lower() + password).encode('utf-8')).hexdigest() == hash # #--- Start of program |