updated logic, since we are only using this in prod, also removed from env.default

This commit is contained in:
Daniel Miranda 2022-11-28 19:34:21 -08:00
Родитель 71e8422b31
Коммит 81e1a91712
2 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -40,10 +40,6 @@ X_FRAME_OPTIONS=DENY
XSS_PROTECTION=True
XROBOTSTAG_ENABLED=False
# Apple Pay config:
APPLE_PAY_DOMAIN_ASSOCIATION_KEY_FOUNDATION=
APPLE_PAY_DOMAIN_ASSOCIATION_KEY_MOZFEST=
# Basket config:
# See the Basket client docs https://basket-client.readthedocs.io/en/latest/install.html

Просмотреть файл

@ -29,7 +29,7 @@ def apple_pay_domain_association_view(request):
"""
Returns key needed for Apple Pay domain association/verification.
"""
if "mozillafestival" or "mozfest" in Site.find_for_request(request).hostname:
if Site.find_for_request(request).hostname == "www.mozillafestival.org":
verification_key = settings.APPLE_PAY_DOMAIN_ASSOCIATION_KEY_MOZFEST
else:
verification_key = settings.APPLE_PAY_DOMAIN_ASSOCIATION_KEY_FOUNDATION