diff --git a/stock/templates/registered/addapikey.html b/stock/templates/registered/addapikey.html index 5059a1a0..eba2a93c 100644 --- a/stock/templates/registered/addapikey.html +++ b/stock/templates/registered/addapikey.html @@ -15,31 +15,26 @@

- Full API Key is required for auth services + Member API keys require access mask {{MEMBER_API_MASK}} or greater for services.

- + {% if MEMBER_API_ACCOUNT %} +

+ Member API keys need to be account-wide. +

+ {% endif %}

Create a full API key

- {% if IS_CORP %} +

+ Blue API keys require access mask {{BLUE_API_MASK}} or greater for services. +

+ {% if BLUE_API_ACCOUNT %}

- NOTE: If you are part of the corp do not check "Blue", this is for people who are blue to the - corp - but are not in it. Blue access is limited. -

- {% else %} -

- NOTE: If you are part of the alliance do not check "Blue", this is for people who are blue to the - alliance - but are not in it. Blue access is limited. + BLUE API keys need to be account-wide.

{% endif %} - -

Do not change the accessmask or deselect options or it will not work -

-

Create diff --git a/util/context_processors.py b/util/context_processors.py index 9367da57..7bd85386 100755 --- a/util/context_processors.py +++ b/util/context_processors.py @@ -21,10 +21,12 @@ def jabber_url(request): return {'JABBER_URL': settings.JABBER_URL} def member_api_mask(request): - return {'MEMBER_API_MASK': settings.MEMBER_API_MASK} + return {'MEMBER_API_MASK': settings.MEMBER_API_MASK, + 'MEMBER_API_ACCOUNT': settings.MEMBER_API_ACCOUNT} def blue_api_mask(request): - return {'BLUE_API_MASK': settings.BLUE_API_MASK} + return {'BLUE_API_MASK': settings.BLUE_API_MASK, + 'BLUE_API_ACCOUNT': settings.BLUE_API_ACCOUNT} def domain_url(request): return {'DOMAIN': settings.DOMAIN, 'MUMBLE_URL': settings.MUMBLE_URL,