From 837cac300dd8d8cf89ef1a6086c6ea308946c43c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Wed, 12 Dec 2018 16:35:31 +0200 Subject: [PATCH] Use email instead of team name in " invites you to their account" emails. Unfortunately the team name is being abused for spam. --- templates/emails/login-body-html.html | 2 +- templates/emails/login-body-text.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/emails/login-body-html.html b/templates/emails/login-body-html.html index 42df5f8f..3109d404 100644 --- a/templates/emails/login-body-html.html +++ b/templates/emails/login-body-html.html @@ -6,7 +6,7 @@ Hello,
{% if inviting_profile %} - {{ inviting_profile }} invites you to their + {{ inviting_profile.user.email }} invites you to their {% site_name %} account.

diff --git a/templates/emails/login-body-text.html b/templates/emails/login-body-text.html index d439abbe..9b238720 100644 --- a/templates/emails/login-body-text.html +++ b/templates/emails/login-body-text.html @@ -1,7 +1,7 @@ {% load hc_extras %} {% block content %}Hello, {% if inviting_profile %} -{{ inviting_profile }} invites you to their {% site_name %} account. +{{ inviting_profile.user.email }} invites you to their {% site_name %} account. You will be able to manage their existing monitoring checks and set up new ones. If you already have your own account on {% site_name %}, you will