mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	src/manage.py: Added check to see whether or not encryption is enabled before prompting for passphrase if it's empty
This commit is contained in:
		 Mike Cronce
					Mike Cronce
				
			
				
					committed by
					
						 Daniel Quinn
						Daniel Quinn
					
				
			
			
				
	
			
			
			 Daniel Quinn
						Daniel Quinn
					
				
			
						parent
						
							8df12400b3
						
					
				
				
					commit
					d2d9804d01
				
			| @@ -11,7 +11,7 @@ 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 not settings.PASSPHRASE: |         if(settings.ENABLE_ENCRYPTION and not settings.PASSPHRASE): | ||||||
|             settings.PASSPHRASE = input( |             settings.PASSPHRASE = input( | ||||||
|                 "settings.PASSPHRASE is unset.  Input passphrase: ") |                 "settings.PASSPHRASE is unset.  Input passphrase: ") | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user