diff --git a/authentication/signals.py b/authentication/signals.py index 452a6af9..30524931 100644 --- a/authentication/signals.py +++ b/authentication/signals.py @@ -31,4 +31,4 @@ def post_save_user(sender, instance, created, *args, **kwargs): # ensure all users have a model if created: AuthServicesInfo.objects.get_or_create(user=instance) - + diff --git a/authentication/tasks.py b/authentication/tasks.py index 865fa9ba..acba28e3 100644 --- a/authentication/tasks.py +++ b/authentication/tasks.py @@ -110,6 +110,8 @@ def set_state(user): auth.state = state auth.save() notify(user, "Membership State Change", message="You membership state has been changed to %s" % state) + assign_corp_group(auth) + assign_alliance_group(auth) def assign_corp_group(auth): diff --git a/authentication/views.py b/authentication/views.py index 1b72855a..8663cd81 100644 --- a/authentication/views.py +++ b/authentication/views.py @@ -108,7 +108,8 @@ def sso_login(request, token): else: messages.error(request, 'Your account has been disabled.') else: - messages.warning(request, 'Authenticated character has no owning account. Please log in with username and password.') + messages.warning(request, + 'Authenticated character has no owning account. Please log in with username and password.') except EveCharacter.DoesNotExist: messages.error(request, 'No account exists with the authenticated character. Please create an account first.') return redirect(login_user)