X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fdorestad-bookings.git;a=blobdiff_plain;f=auth.py;fp=auth.py;h=23b48bba25b8e984d92cf413e68cdc68bd11fa17;hp=9d8566f9a4aa3889ee066cb939f7b429ae5fc7b2;hb=e4fa6131f5239a266eae72317738f68327e65003;hpb=b8ab54abb0092e5e16cb8fbe65ec96fc0f7cef4e diff --git a/auth.py b/auth.py index 9d8566f..23b48bb 100644 --- a/auth.py +++ b/auth.py @@ -62,7 +62,7 @@ class PhpBBBackend: # 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):