mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Only require a passphrase if STORAGE_TYPE is not "unencrypted"
This commit is contained in:
		@@ -11,8 +11,10 @@ if __name__ == "__main__":
 | 
				
			|||||||
    # The runserver and consumer need to have access to the passphrase, so it
 | 
					    # The runserver and consumer need to have access to the passphrase, so it
 | 
				
			||||||
    # must be entered at start time to keep it safe.
 | 
					    # must be entered at start time to keep it safe.
 | 
				
			||||||
    if "runserver" in sys.argv or "document_consumer" in sys.argv:
 | 
					    if "runserver" in sys.argv or "document_consumer" in sys.argv:
 | 
				
			||||||
        if(settings.ENABLE_ENCRYPTION and not settings.PASSPHRASE):
 | 
					        if not settings.STORAGE_TYPE == "unencrypted":
 | 
				
			||||||
 | 
					            if not settings.PASSPHRASE:
 | 
				
			||||||
                settings.PASSPHRASE = input(
 | 
					                settings.PASSPHRASE = input(
 | 
				
			||||||
                "settings.PASSPHRASE is unset.  Input passphrase: ")
 | 
					                    "settings.PASSPHRASE is unset.  Input passphrase: "
 | 
				
			||||||
 | 
					                )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    execute_from_command_line(sys.argv)
 | 
					    execute_from_command_line(sys.argv)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user