Included Discord in disable_services from common_task.

Changed how user accounts in discord are handled: endpoint accepts password and email.
Accounts are created with a password(random) and their user email. Need to activate account through link in email.
This commit is contained in:
Adarnof
2015-12-01 04:12:50 +00:00
parent 90522a5053
commit c009420536
5 changed files with 69 additions and 39 deletions

View File

@@ -7,6 +7,7 @@ from services.managers.phpbb3_manager import Phpbb3Manager
from services.managers.mumble_manager import MumbleManager
from services.managers.ipboard_manager import IPBoardManager
from services.managers.teamspeak3_manager import Teamspeak3Manager
from services.managers.discord_manager import DiscordManager
def add_user_to_group(user, groupname):
@@ -41,6 +42,9 @@ def deactivate_services(user):
if authinfo.teamspeak3_uid and authinfo.teamspeak3_uid != "":
Teamspeak3Manager.delete_user(authinfo.teamspeak3_uid)
AuthServicesInfoManager.update_user_teamspeak3_info("", "", user)
if authinfo.discord_username and authinfo.discord_username != "":
DiscordManager.delete_user(authinfo.discord_username)
AuthServicesInfoManager.update_user_discord_info("", "", user)
def generate_corp_group_name(corpname):