mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
[Breaking] Webhooks: disallow deprecated WEBHOOK_AUTHORIZATION setting
Drop support for the WEBHOOK_AUTHORIZATION setting deprecated in v1.4. Only the WEBHOOK_SECRET replacement is allowed now. Most Django management commands will now issue a system check error if the old name is still used in settings.py
This commit is contained in:
@@ -26,9 +26,6 @@ class AnymailBasicAuthMixin(object):
|
||||
def __init__(self, **kwargs):
|
||||
self.basic_auth = get_anymail_setting('webhook_secret', default=[],
|
||||
kwargs=kwargs) # no esp_name -- auth is shared between ESPs
|
||||
if not self.basic_auth:
|
||||
# Temporarily allow deprecated WEBHOOK_AUTHORIZATION setting
|
||||
self.basic_auth = get_anymail_setting('webhook_authorization', default=[], kwargs=kwargs)
|
||||
|
||||
# Allow a single string:
|
||||
if isinstance(self.basic_auth, six.string_types):
|
||||
|
||||
Reference in New Issue
Block a user