X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fprojects%2Fwipi.git;a=blobdiff_plain;f=conf%2Fauth%2Fphpbb.py;fp=conf%2Fauth%2Fphpbb.py;h=54763b3558731a9db66e165c7583a145a973ea2c;hp=58dd72cab6a01660383d15df62cd9f1b4a6eafc6;hb=6143b643c63de8726c8858466aafe6b0b56546bf;hpb=56c7185a2b300c7db7c4e0cdb0f9a5149e46b595 diff --git a/conf/auth/phpbb.py b/conf/auth/phpbb.py index 58dd72c..54763b3 100644 --- a/conf/auth/phpbb.py +++ b/conf/auth/phpbb.py @@ -207,7 +207,7 @@ class PhpbbAuth(BaseAuth): conn = connect(**self.dbconfig) if not conn: - return False + return (False, False) # Get some data. Note that we interpolate the prefix ourselves, since # letting the mysql library do it only works with values (it adds '' @@ -223,7 +223,7 @@ class PhpbbAuth(BaseAuth): # No data? No login. if (cursor.rowcount == 0): conn.close() - return False + return (False, False) # Check password row = cursor.fetchone()