Skip to content

Commit 6f4ae6d

Browse files
Jyrki Launonenjapsu
authored andcommitted
auth_db: also UTF8-encode password
1 parent d1aaa8e commit 6f4ae6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

phpbb/auth/auth_db.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def login_db(username=None, password=None):
3535
if type(username) is unicode:
3636
username = username.encode("UTF-8")
3737

38+
if type(password) is unicode:
39+
password = password.encode("UTF-8")
40+
3841
user_row = get_user_row(utf8_clean_string(username))
3942
if not user_row:
4043
return "LOGIN_ERROR_USERNAME", None

0 commit comments

Comments
 (0)