A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
fixed dev auth
Jonas Winklerbd417cf7c91f
diff --git a/src/paperless/auth.py b/src/paperless/auth.pyindex 67cb80054..ecd697f0e 100644--- a/src/paperless/auth.py+++ b/src/paperless/auth.py@@ -9,7 +9,7 @@ class AngularApiAuthenticationOverride(authentication.BaseAuthentication):"""def authenticate(self, request):- if settings.DEBUG and 'Origin' in request.headers and request.headers['Origin'] == 'http://localhost:4200':+ if settings.DEBUG and 'Referer' in request.headers and request.headers['Referer'].startswith('http://localhost:4200/'):user = User.objects.filter(is_staff=True).first()print("Auto-Login with user {}".format(user))return (user, None)