Allow services to specify to use the charnames or auth username, also add IPB and SMF framework

This commit is contained in:
2011-03-03 10:45:55 +00:00
parent 45d4ee926a
commit 1670eee9eb
11 changed files with 179 additions and 3 deletions

View File

@@ -12,7 +12,8 @@ class PhpBBService(BaseDBService):
settings = { 'require_user': False,
'require_password': False,
'provide_login': False }
'provide_login': False,
'use_auth_username': False }
SQL_ADD_USER = r"INSERT INTO phpbb_users (username, username_clean, user_password, user_email) VALUES (%s, %s, %s, %s)"
SQL_DIS_USER = r"DELETE FROM phpbb_user_groups where user_id = (SELECT user_id FROM phpbb_user WHERE username = %s)"