Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
removed no-login option since it wasn't working with the new django v…
Browse files Browse the repository at this point in the history
…ersion anyway.
  • Loading branch information
Jonas Winkler committed Nov 9, 2020
1 parent 7bd8432 commit 44cd856
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 55 deletions.
5 changes: 0 additions & 5 deletions paperless.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@ PAPERLESS_EMAIL_SECRET=""
# https://docs.djangoproject.com/en/1.11/ref/settings/#force-script-name
#PAPERLESS_FORCE_SCRIPT_NAME=""

# If you are using alternative authentication means or are just using paperless
# as a single user on a small private network, this option allows you to disable
# user authentication if you set it to "true"
#PAPERLESS_DISABLE_LOGIN="false"

###############################################################################
#### Software Tweaks ####
###############################################################################
Expand Down
14 changes: 0 additions & 14 deletions src/paperless/middleware.py

This file was deleted.

31 changes: 0 additions & 31 deletions src/paperless/models.py

This file was deleted.

5 changes: 0 additions & 5 deletions src/paperless/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ def __get_boolean(key, default="NO"):
# Allow access from the angular development server during debugging
CORS_ORIGIN_WHITELIST += ('http://localhost:4200',)

# If auth is disabled, we just use our "bypass" authentication middleware
if bool(os.getenv("PAPERLESS_DISABLE_LOGIN", "false").lower() in ("yes", "y", "1", "t", "true")):
_index = MIDDLEWARE.index("django.contrib.auth.middleware.AuthenticationMiddleware")
MIDDLEWARE[_index] = "paperless.middleware.Middleware"

# The secret key has a default that should be fine so long as you're hosting
# Paperless on a closed network. However, if you're putting this anywhere
# public, you should change the key to something unique and verbose.
Expand Down

0 comments on commit 44cd856

Please sign in to comment.