mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-15 23:40:17 +02:00
Set token user to allow ownership creation
This commit is contained in:
parent
0cf8836832
commit
1101572f78
@ -39,6 +39,7 @@ class StateBackend(ModelBackend):
|
||||
# insecure legacy main check for pre-sso registration auth installs
|
||||
profile = UserProfile.objects.get(main_character__character_id=token.character_id)
|
||||
# attach an ownership
|
||||
token.user = profile.user
|
||||
CharacterOwnership.objects.create_by_token(token)
|
||||
return profile.user
|
||||
except UserProfile.DoesNotExist:
|
||||
|
Loading…
x
Reference in New Issue
Block a user