Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble-scripts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Hacker <dd0t@users.sourceforge.net>2010-12-13 17:58:57 +0300
committerStefan Hacker <dd0t@users.sourceforge.net>2010-12-13 18:01:55 +0300
commit0aaa59ab71bb121cfc53ce2c7ddebc62f95aa813 (patch)
tree68d0259e4d1670014f2a2d69a9af78378aaa1ff7 /Authenticators/SMF
parent59c42507087418c0972166ba8c45bf542ec0246a (diff)
Fix password encoding handling in phpBB3auth and smfauth.
Diffstat (limited to 'Authenticators/SMF')
-rwxr-xr-x[-rw-r--r--]Authenticators/SMF/smfauth.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Authenticators/SMF/smfauth.py b/Authenticators/SMF/smfauth.py
index d604c32..73b1199 100644..100755
--- a/Authenticators/SMF/smfauth.py
+++ b/Authenticators/SMF/smfauth.py
@@ -54,6 +54,7 @@ from logging import (debug,
warning,
error,
critical,
+ exception,
getLogger)
try:
@@ -792,7 +793,7 @@ def smf_check_hash(password, hash, username):
"""
Python implementation of the smf check hash function
"""
- return sha1(unicode(username.lower() + password).encode('utf8')).hexdigest() == hash
+ return sha1(username.lower().encode('utf8') + password).hexdigest() == hash
#
#--- Start of program