From 1d273181ec1a49b39d1a6965c26bb29e057fee44 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Wed, 22 Nov 2023 18:39:16 +0530 Subject: [PATCH] dev: disable ssl for emails --- apiserver/plane/bgtasks/analytic_plot_export.py | 7 ------- apiserver/plane/bgtasks/email_verification_task.py | 7 ------- apiserver/plane/bgtasks/forgot_password_task.py | 7 ------- apiserver/plane/bgtasks/magic_link_code_task.py | 7 ------- apiserver/plane/bgtasks/project_invitation_task.py | 7 ------- apiserver/plane/bgtasks/workspace_invitation_task.py | 7 ------- 6 files changed, 42 deletions(-) diff --git a/apiserver/plane/bgtasks/analytic_plot_export.py b/apiserver/plane/bgtasks/analytic_plot_export.py index c67399adf..e32c2fd68 100644 --- a/apiserver/plane/bgtasks/analytic_plot_export.py +++ b/apiserver/plane/bgtasks/analytic_plot_export.py @@ -81,13 +81,6 @@ def send_export_email(email, slug, csv_buffer): os.environ.get("EMAIL_USE_TLS", "1"), ) ), - use_ssl=bool( - get_configuration_value( - instance_configuration, - "EMAIL_USE_SSL", - os.environ.get("EMAIL_USE_SSL", "0"), - ) - ), ) msg = EmailMultiAlternatives( diff --git a/apiserver/plane/bgtasks/email_verification_task.py b/apiserver/plane/bgtasks/email_verification_task.py index 650b73eac..3f8f19fe6 100644 --- a/apiserver/plane/bgtasks/email_verification_task.py +++ b/apiserver/plane/bgtasks/email_verification_task.py @@ -65,13 +65,6 @@ def email_verification(first_name, email, token, current_site): os.environ.get("EMAIL_USE_TLS", "1"), ) ), - use_ssl=bool( - get_configuration_value( - instance_configuration, - "EMAIL_USE_SSL", - os.environ.get("EMAIL_USE_SSL", "0"), - ) - ), ) # Initiate email alternatives diff --git a/apiserver/plane/bgtasks/forgot_password_task.py b/apiserver/plane/bgtasks/forgot_password_task.py index a2b09cd8d..ca0eeb91d 100644 --- a/apiserver/plane/bgtasks/forgot_password_task.py +++ b/apiserver/plane/bgtasks/forgot_password_task.py @@ -60,13 +60,6 @@ def forgot_password(first_name, email, uidb64, token, current_site): os.environ.get("EMAIL_USE_TLS", "1"), ) ), - use_ssl=bool( - get_configuration_value( - instance_configuration, - "EMAIL_USE_SSL", - os.environ.get("EMAIL_USE_SSL", "0"), - ) - ), ) msg = EmailMultiAlternatives( diff --git a/apiserver/plane/bgtasks/magic_link_code_task.py b/apiserver/plane/bgtasks/magic_link_code_task.py index da84769f6..0db8e5504 100644 --- a/apiserver/plane/bgtasks/magic_link_code_task.py +++ b/apiserver/plane/bgtasks/magic_link_code_task.py @@ -59,13 +59,6 @@ def magic_link(email, key, token, current_site): os.environ.get("EMAIL_USE_TLS", "1"), ) ), - use_ssl=bool( - get_configuration_value( - instance_configuration, - "EMAIL_USE_SSL", - os.environ.get("EMAIL_USE_SSL", "0"), - ) - ), ) msg = EmailMultiAlternatives( diff --git a/apiserver/plane/bgtasks/project_invitation_task.py b/apiserver/plane/bgtasks/project_invitation_task.py index ca414d46b..fc740afc5 100644 --- a/apiserver/plane/bgtasks/project_invitation_task.py +++ b/apiserver/plane/bgtasks/project_invitation_task.py @@ -74,13 +74,6 @@ def project_invitation(email, project_id, token, current_site, invitor): os.environ.get("EMAIL_USE_TLS", "1"), ) ), - use_ssl=bool( - get_configuration_value( - instance_configuration, - "EMAIL_USE_SSL", - os.environ.get("EMAIL_USE_SSL", "0"), - ) - ), ) msg = EmailMultiAlternatives( diff --git a/apiserver/plane/bgtasks/workspace_invitation_task.py b/apiserver/plane/bgtasks/workspace_invitation_task.py index aa527f241..27a1d1d38 100644 --- a/apiserver/plane/bgtasks/workspace_invitation_task.py +++ b/apiserver/plane/bgtasks/workspace_invitation_task.py @@ -83,13 +83,6 @@ def workspace_invitation(email, workspace_id, token, current_site, invitor): os.environ.get("EMAIL_USE_TLS", "1"), ) ), - use_ssl=bool( - get_configuration_value( - instance_configuration, - "EMAIL_USE_SSL", - os.environ.get("EMAIL_USE_SSL", "0"), - ) - ), ) msg = EmailMultiAlternatives(