🩹(backend) fix duplication due to a bad rebase
While rebasing, I made few mistake with a settings wrongly renamed. Oopsie fix this huge mistake. Plus, a line was duplicated in Event authentication.
This commit is contained in:
committed by
aleb_the_flash
parent
6b03ebb393
commit
10705ca3ac
@@ -47,8 +47,6 @@ class StorageEventAuthentication(BaseAuthentication):
|
|||||||
|
|
||||||
def authenticate(self, request):
|
def authenticate(self, request):
|
||||||
"""Validate the Bearer token from the Authorization header."""
|
"""Validate the Bearer token from the Authorization header."""
|
||||||
if not settings.RECORDING_ENABLE_STORAGE_EVENT_AUTH:
|
|
||||||
return MachineUser(), None
|
|
||||||
|
|
||||||
if not settings.RECORDING_ENABLE_STORAGE_EVENT_AUTH:
|
if not settings.RECORDING_ENABLE_STORAGE_EVENT_AUTH:
|
||||||
return MachineUser(), None
|
return MachineUser(), None
|
||||||
|
|||||||
@@ -446,7 +446,7 @@ class Base(Configuration):
|
|||||||
False, environ_name="RECORDING_STORAGE_EVENT_ENABLE", environ_prefix=None
|
False, environ_name="RECORDING_STORAGE_EVENT_ENABLE", environ_prefix=None
|
||||||
)
|
)
|
||||||
RECORDING_STORAGE_EVENT_TOKEN = values.Value(
|
RECORDING_STORAGE_EVENT_TOKEN = values.Value(
|
||||||
None, environ_name="RECORDING_STORAGE_HOOK_TOKEN", environ_prefix=None
|
None, environ_name="RECORDING_STORAGE_EVENT_TOKEN", environ_prefix=None
|
||||||
)
|
)
|
||||||
|
|
||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
|
|||||||
Reference in New Issue
Block a user