From f722cae8d6552947ca9015df4697c725f219e910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Wed, 22 Mar 2023 15:35:33 +0100 Subject: [PATCH] Add multiple registration warning message (#1653) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add multiple registration warning message * Add alert --------- Co-authored-by: Adrià Casajús --- app/config.py | 1 + .../warn-multiple-registration.html | 17 +++++++++++++++++ .../warn-multiple-registration.txt.jinja2 | 9 +++++++++ 3 files changed, 27 insertions(+) create mode 100644 templates/emails/transactional/warn-multiple-registration.html create mode 100644 templates/emails/transactional/warn-multiple-registration.txt.jinja2 diff --git a/app/config.py b/app/config.py index 5fdb7ab3..782f693d 100644 --- a/app/config.py +++ b/app/config.py @@ -357,6 +357,7 @@ ALERT_COMPLAINT_TRANSACTIONAL_PHASE = "alert_complaint_transactional_phase" ALERT_QUARANTINE_DMARC = "alert_quarantine_dmarc" ALERT_DUAL_SUBSCRIPTION_WITH_PARTNER = "alert_dual_sub_with_partner" +ALERT_WARN_MULTIPLE_SUBSCRIPTIONS = "alert_multiple_subscription" # <<<<< END ALERT EMAIL >>>> diff --git a/templates/emails/transactional/warn-multiple-registration.html b/templates/emails/transactional/warn-multiple-registration.html new file mode 100644 index 00000000..c3d6c2b1 --- /dev/null +++ b/templates/emails/transactional/warn-multiple-registration.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block content %} + + {% call text() %} + Hello, +{% endcall %} + +{% call text() %} +Your have tried to register multiple times to {{ service }}, and this is against the terms of service of SimpleLogin. Please don't do that anymore. +{% endcall %} + +{% call text() %} +If you continue registering multiple accounts to a single service we will have to disable your account. +{% endcall %} + +{% endblock %} diff --git a/templates/emails/transactional/warn-multiple-registration.txt.jinja2 b/templates/emails/transactional/warn-multiple-registration.txt.jinja2 new file mode 100644 index 00000000..b98117e4 --- /dev/null +++ b/templates/emails/transactional/warn-multiple-registration.txt.jinja2 @@ -0,0 +1,9 @@ +{% extends "base.txt.jinja2" %} + +{% block content %} +Hello, + +Your have tried to register multiple times to {{service}}, and this is against the terms of service of SimpleLogin. Please don't do that anymore. + +If you continue registering multiple accounts to a single service we will have to disable your account. +{% endblock %}