custom auth backend

This commit is contained in:
imperosol
2024-12-21 17:34:20 +01:00
parent 4f233538e0
commit 81e163812e
2 changed files with 30 additions and 0 deletions

View File

@ -290,6 +290,7 @@ STORAGES = {
# Auth configuration
AUTH_USER_MODEL = "core.User"
AUTH_ANONYMOUS_MODEL = "core.models.AnonymousUser"
AUTHENTICATION_BACKENDS = ["core.auth_backends.SithModelBackend"]
LOGIN_URL = "/login"
LOGOUT_URL = "/logout"
LOGIN_REDIRECT_URL = "/"