1
0
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:
Jeremy Stretch
2020-03-11 11:10:26 -04:00
parent 90144ccd9a
commit 7ffc00159e
4 changed files with 78 additions and 37 deletions

View File

@ -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')