mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Tweak settings/middleware to support testing; improve tests
This commit is contained in:
@ -37,7 +37,7 @@ class RemoteUserBackend(ViewExemptModelBackend, RemoteUserBackend_):
|
||||
"""
|
||||
@property
|
||||
def create_unknown_user(self):
|
||||
return bool(settings.REMOTE_AUTH_AUTO_CREATE_USER)
|
||||
return settings.REMOTE_AUTH_AUTO_CREATE_USER
|
||||
|
||||
def configure_user(self, request, user):
|
||||
logger = logging.getLogger('netbox.authentication.RemoteUserBackend')
|
||||
|
Reference in New Issue
Block a user