From 4ac7c4249cbad610827f3ed892142c8e23d26e33 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Tue, 1 Dec 2015 04:15:43 +0000 Subject: [PATCH] Updated AuthServiceInfoManager to update correct fields. --- authentication/managers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/authentication/managers.py b/authentication/managers.py index 9b2bfb49..26d2cdd8 100755 --- a/authentication/managers.py +++ b/authentication/managers.py @@ -81,9 +81,9 @@ class AuthServicesInfoManager: authserviceinfo.save(update_fields=['is_blue']) @staticmethod - def update_user_discord_info(username, user_id, user): + def update_user_discord_info(username, password, user): if User.objects.filter(username=user.username).exists(): authserviceinfo = AuthServicesInfoManager.__get_or_create(user) authserviceinfo.discord_username = username - authserviceinfo.discord_uid = user_id - authserviceinfo.save(update_fields=['discord_username', 'discord_uid']) + authserviceinfo.discord_password = password + authserviceinfo.save(update_fields=['discord_username', 'discord_password'])