The username field in the phpbb3 database is case sensitive (i.e., it
has utf_bin collation), whereas in phpbb2 it was case insensitive. This
commit changes the SQL query to make logins case insensitive again,
since a lot of people used a capital letter for registering their
username, but forgot that later on...
# Get some data
cursor = conn.cursor ()
- cursor.execute ("SELECT user_password,user_email FROM %susers WHERE username=%%s" % prefix, username)
+ cursor.execute ("SELECT user_password,user_email FROM %susers WHERE LOWER(username)=LOWER(%%s)" % prefix, username)
# No data? No login.
if (cursor.rowcount == 0):