dev: fix smtp configuration (#3339)

This commit is contained in:
Nikhil 2024-01-10 18:16:28 +05:30 committed by sriram veeraghanta
parent 23e5306f6d
commit 59fb371e3d

View File

@ -118,7 +118,7 @@ class ConfigurationEndpoint(BaseAPIView):
data["file_size_limit"] = float(os.environ.get("FILE_SIZE_LIMIT", 5242880)) data["file_size_limit"] = float(os.environ.get("FILE_SIZE_LIMIT", 5242880))
# is smtp configured # is smtp configured
data["is_smtp_configured"] = not ( data["is_smtp_configured"] = (
bool(EMAIL_HOST_USER) and bool(EMAIL_HOST_PASSWORD) bool(EMAIL_HOST_USER) and bool(EMAIL_HOST_PASSWORD)
) )