Commit 0e17d1ad authored by Sofia Papagiannaki's avatar Sofia Papagiannaki
Browse files

not send admin notification email if ASTAKOS_DEFAULT_ADMIN_EMAIL is not set

Refs: #2116 
parent f0c894d1
......@@ -269,6 +269,8 @@ def _send_verification(request, user, template_name):
logger.info('Sent activation %s', user)
def _send_notification(user, template_name):
if not DEFAULT_ADMIN_EMAIL:
return
message = render_to_string(template_name, {
'user': user,
'baseurl': BASEURL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment