mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Fix checked_user
This commit is contained in:
@@ -53,7 +53,7 @@ class MumbleSQLService(BaseDBService):
|
|||||||
""" Check if the username exists """
|
""" Check if the username exists """
|
||||||
self.dbcursor.execute(self.SQL_CHECK_USER, [username])
|
self.dbcursor.execute(self.SQL_CHECK_USER, [username])
|
||||||
row = self.dbcursor.fetchone()
|
row = self.dbcursor.fetchone()
|
||||||
if row[0].lower() == username.lower():
|
if row and row[0].lower() == username.lower():
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user