removed no-login option since it wasn't working with the new django version anyway.

This commit is contained in:
Jonas Winkler
2020-11-09 15:28:45 +01:00
parent 7bd843283d
commit 44cd8565b1
4 changed files with 0 additions and 55 deletions

View File

@@ -1,14 +0,0 @@
from django.utils.deprecation import MiddlewareMixin
from .models import User
class Middleware(MiddlewareMixin):
"""
This is a dummy authentication middleware class that creates what
is roughly an Anonymous authenticated user so we can disable login
and not interfere with existing user ID's. It's only used if
login is disabled in paperless.conf (default is to require login)
"""
def process_request(self, request):
request.user = User()