mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Closes #591 Conflicts: authentication/views.py eveonline/views.py stock/templates/public/characternotexisting.html
24 lines
581 B
Python
24 lines
581 B
Python
from __future__ import unicode_literals
|
|
from authentication.states import NONE_STATE, BLUE_STATE, MEMBER_STATE
|
|
from authentication.managers import UserState
|
|
from django.conf import settings
|
|
|
|
|
|
def membership_state(request):
|
|
return UserState.get_membership_state(request)
|
|
|
|
|
|
def states(request):
|
|
return {
|
|
'BLUE_STATE': BLUE_STATE,
|
|
'MEMBER_STATE': MEMBER_STATE,
|
|
'NONE_STATE': NONE_STATE,
|
|
'MEMBER_BLUE_STATE': [MEMBER_STATE, BLUE_STATE],
|
|
}
|
|
|
|
|
|
def sso(request):
|
|
return {
|
|
'EVE_SSO_CALLBACK_URL': settings.ESI_SSO_CALLBACK_URL,
|
|
}
|