mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-07 23:56:23 +01:00
@@ -31,4 +31,4 @@ def post_save_user(sender, instance, created, *args, **kwargs):
|
|||||||
# ensure all users have a model
|
# ensure all users have a model
|
||||||
if created:
|
if created:
|
||||||
AuthServicesInfo.objects.get_or_create(user=instance)
|
AuthServicesInfo.objects.get_or_create(user=instance)
|
||||||
|
|
||||||
|
|||||||
@@ -110,6 +110,8 @@ def set_state(user):
|
|||||||
auth.state = state
|
auth.state = state
|
||||||
auth.save()
|
auth.save()
|
||||||
notify(user, "Membership State Change", message="You membership state has been changed to %s" % state)
|
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):
|
def assign_corp_group(auth):
|
||||||
|
|||||||
@@ -108,7 +108,8 @@ def sso_login(request, token):
|
|||||||
else:
|
else:
|
||||||
messages.error(request, 'Your account has been disabled.')
|
messages.error(request, 'Your account has been disabled.')
|
||||||
else:
|
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:
|
except EveCharacter.DoesNotExist:
|
||||||
messages.error(request, 'No account exists with the authenticated character. Please create an account first.')
|
messages.error(request, 'No account exists with the authenticated character. Please create an account first.')
|
||||||
return redirect(login_user)
|
return redirect(login_user)
|
||||||
|
|||||||
Reference in New Issue
Block a user