From b4c395f11620eabc3d610a3f117f8261fc465d6d Mon Sep 17 00:00:00 2001 From: Adarnof Date: Thu, 15 Mar 2018 19:41:11 -0400 Subject: [PATCH] Don't force token updates on main character checks. --- allianceauth/authentication/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allianceauth/authentication/signals.py b/allianceauth/authentication/signals.py index 66e3b641..e774a2fc 100644 --- a/allianceauth/authentication/signals.py +++ b/allianceauth/authentication/signals.py @@ -119,7 +119,7 @@ def validate_main_character_token(sender, instance, *args, **kwargs): instance.character_name)) profile = UserProfile.objects.get(main_character__character_id=instance.character_id) if not Token.objects.filter(character_id=instance.character_id).filter( - user=profile.user).require_valid().exists(): + user=profile.user).filter(refresh_token__isnull=False).exists(): logger.info( "No remaining tokens to validate {0} ownership of main character {1}. Resetting main character.".format( profile.user, profile.main_character))