mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Don't check changed passphrase if no passphrase set
This commit is contained in:
		| @@ -1,3 +1,4 @@ | ||||
| from django.conf import settings | ||||
| from django.core.checks import Warning, register | ||||
| from django.db.utils import OperationalError | ||||
|  | ||||
| @@ -8,6 +9,9 @@ def changed_password_check(app_configs, **kwargs): | ||||
|     from documents.models import Document | ||||
|     from paperless.db import GnuPG | ||||
|  | ||||
|     if not settings.PASSPHRASE: | ||||
|         return [] | ||||
|  | ||||
|     warning = ( | ||||
|         "At least one document:\n\n  {}\n\nin your data store was encrypted " | ||||
|         "with a password other than the one currently\nin use.  This means " | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Quinn
					Daniel Quinn