Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

fixes #745

jonaswinkler0ad2b05455da
diff --git a/src/paperless/auth.py b/src/paperless/auth.py
index 3bc6344cd..79deb5c37 100644
--- a/src/paperless/auth.py
+++ b/src/paperless/auth.py
@@ -1,4 +1,5 @@
from django.conf import settings
+from django.contrib import auth
from django.contrib.auth.models import User
from django.utils.deprecation import MiddlewareMixin
from rest_framework import authentication
@@ -11,6 +12,7 @@ class AutoLoginMiddleware(MiddlewareMixin):
try:
request.user = User.objects.get(
username=settings.AUTO_LOGIN_USERNAME)
+ auth.login(request, request.user)
except User.DoesNotExist:
pass