A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
fixes #745
jonaswinkler0ad2b05455da
diff --git a/src/paperless/auth.py b/src/paperless/auth.pyindex 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 authfrom django.contrib.auth.models import Userfrom django.utils.deprecation import MiddlewareMixinfrom 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