You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/10/31 17:48:23 UTC
[airavata-django-portal] 09/09: AIRAVATA-2888 Fix To for admin
emails
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git
commit 9b0b28ed80d49dbefc6c799f26a5d48ecde046ab
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Wed Oct 31 13:48:01 2018 -0400
AIRAVATA-2888 Fix To for admin emails
---
django_airavata/apps/auth/views.py | 3 +--
django_airavata/settings_local.py.sample | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/django_airavata/apps/auth/views.py b/django_airavata/apps/auth/views.py
index 7f01581..7b2bd2e 100644
--- a/django_airavata/apps/auth/views.py
+++ b/django_airavata/apps/auth/views.py
@@ -182,8 +182,7 @@ def verify_email(request, code):
from_email="{} <{}>".format(
settings.PORTAL_TITLE,
settings.SERVER_EMAIL),
- to=["{} {} <{}>".format(
- first_name, last_name, email_address)])
+ to=[a[1] for a in settings.ADMINS])
msg.content_subtype = 'html'
msg.send()
messages.success(
diff --git a/django_airavata/settings_local.py.sample b/django_airavata/settings_local.py.sample
index 796459b..d26b1e6 100644
--- a/django_airavata/settings_local.py.sample
+++ b/django_airavata/settings_local.py.sample
@@ -62,6 +62,7 @@ AIRAVATA_API_SECURE = False
GATEWAY_DATA_STORE_RESOURCE_ID = '...'
GATEWAY_DATA_STORE_DIR = '/tmp'
GATEWAY_DATA_STORE_HOSTNAME = 'localhost'
+FILE_UPLOAD_TEMP_DIR = '/tmp'
# Profile Service Configuration
PROFILE_SERVICE_HOST = AIRAVATA_API_HOST