mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 20:29:36 +00:00
fix type hints
This commit is contained in:
@@ -242,7 +242,9 @@ if bool(environ.get("TA_ENABLE_AUTH_PROXY")):
|
|||||||
# Configure Authentication Backend Combinations
|
# Configure Authentication Backend Combinations
|
||||||
_login_auth_mode = (environ.get("TA_LOGIN_AUTH_MODE") or "single").casefold()
|
_login_auth_mode = (environ.get("TA_LOGIN_AUTH_MODE") or "single").casefold()
|
||||||
if _login_auth_mode == "local":
|
if _login_auth_mode == "local":
|
||||||
AUTHENTICATION_BACKENDS = ("django.contrib.auth.backends.ModelBackend",)
|
AUTHENTICATION_BACKENDS: tuple = (
|
||||||
|
"django.contrib.auth.backends.ModelBackend",
|
||||||
|
)
|
||||||
elif _login_auth_mode == "ldap":
|
elif _login_auth_mode == "ldap":
|
||||||
AUTHENTICATION_BACKENDS = ("django_auth_ldap.backend.LDAPBackend",)
|
AUTHENTICATION_BACKENDS = ("django_auth_ldap.backend.LDAPBackend",)
|
||||||
elif _login_auth_mode == "forwardauth":
|
elif _login_auth_mode == "forwardauth":
|
||||||
|
|||||||
Reference in New Issue
Block a user