Commit bc78a561 authored by Daniel Schreiber's avatar Daniel Schreiber

use form base authentication in docker containers

parent 37c5952e
......@@ -105,6 +105,12 @@ if os.environ.get("DOCKER", "") == "1":
f.write(key)
with open(secrets_file, "r") as f:
SECRET_KEY = f.readline().strip()
AUTHENTICATION_BACKENDS = [
'django.contrib.auth.backends.ModelBackend',
]
MIDDLEWARE_CLASSES.append('django.contrib.auth.middleware.AuthenticationMiddleware')
MIDDLEWARE_CLASSES.remove('django.contrib.auth.middleware.RemoteUserMiddleware')
from settings_docker import *
else:
from settings_private import *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment