Changed how user account deletions are handled.

Now bans/unbans account as necessary.
This commit is contained in:
Adarnof
2015-12-01 04:50:14 +00:00
parent 7461501d41
commit 54d216bdf0
3 changed files with 18 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ def deactivate_services(user):
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)
DiscordManager.lock_user(authinfo.discord_username)
AuthServicesInfoManager.update_user_discord_info("", "", user)