Skip to content

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

src/manage.py: Added check to see whether or not encryption is enabled before prompting for passphrase if it's empty

Mike Cronce8783c2af884a
diff --git a/src/manage.py b/src/manage.py
index db13d9d62..040af1249 100755
--- a/src/manage.py
+++ b/src/manage.py
@@ -11,7 +11,7 @@ if __name__ == "__main__":
# The runserver and consumer need to have access to the passphrase, so it
# must be entered at start time to keep it safe.
if "runserver" in sys.argv or "document_consumer" in sys.argv:
- if not settings.PASSPHRASE:
+ if(settings.ENABLE_ENCRYPTION and not settings.PASSPHRASE):
settings.PASSPHRASE = input(
"settings.PASSPHRASE is unset. Input passphrase: ")