From 50a105f156fd05b6ebeebf4d1ee9a9d7c39df8ca Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 11 May 2020 14:44:57 +0200 Subject: [PATCH 01/33] fix mailbox newsletter --- templates/emails/com/newsletter/mailbox.html | 2 +- templates/emails/com/newsletter/mailbox.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/emails/com/newsletter/mailbox.html b/templates/emails/com/newsletter/mailbox.html index a1e5a12e..3f494768 100644 --- a/templates/emails/com/newsletter/mailbox.html +++ b/templates/emails/com/newsletter/mailbox.html @@ -30,6 +30,6 @@ maybe for different uses: a Gmail account for social networks & forums, a Pronto {% endblock %} {% block footer %} - This email is sent to {{ user.email }} and is part of our onboarding series. Unsubscribe on + This email is sent to {{ user.email }}. Unsubscribe on Settings {% endblock %} diff --git a/templates/emails/com/newsletter/mailbox.txt b/templates/emails/com/newsletter/mailbox.txt index b9871308..b8c86e8f 100644 --- a/templates/emails/com/newsletter/mailbox.txt +++ b/templates/emails/com/newsletter/mailbox.txt @@ -1,4 +1,4 @@ -This email is sent to {{ user.email }} and is part of our onboarding series. +This email is sent to {{ user.email }}. Unsubscribe from our emails on https://app.simplelogin.io/dashboard/setting#notification ---------------- From 54ce1dc9644be92517ef25d512e0ead835f4810a Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 11 May 2020 14:46:18 +0200 Subject: [PATCH 02/33] remove unnecessary max_nb_email limit in spf --- email_handler.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/email_handler.py b/email_handler.py index b7fad61f..35532d33 100644 --- a/email_handler.py +++ b/email_handler.py @@ -606,9 +606,6 @@ def spf_pass( subject=msg["Subject"], time=arrow.now(), ), - # as the returned error status is 4**, - # the sender will try to resend the email. Send the error message only once - max_alert_24h=1, ) return False From 70e842789e1c17737c8f501891a32ef329138133 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Mon, 11 May 2020 23:22:06 +0200 Subject: [PATCH 03/33] make pages compatible with dark-theme --- app/auth/templates/auth/fido.html | 88 +++++++------ app/auth/templates/auth/mfa.html | 52 ++++---- .../templates/dashboard/billing.html | 120 ++++++++--------- .../templates/dashboard/custom_alias.html | 122 +++++++++--------- .../templates/dashboard/directory.html | 2 +- .../templates/dashboard/fido_cancel.html | 27 ++-- .../templates/dashboard/fido_setup.html | 74 +++++------ .../templates/dashboard/lifetime_licence.html | 26 ++-- .../templates/dashboard/mfa_cancel.html | 31 ++--- .../templates/dashboard/mfa_setup.html | 67 +++++----- .../templates/dashboard/unsubscribe.html | 28 ++-- .../oauth/authorize_nonlogin_user.html | 107 +++++++-------- 12 files changed, 381 insertions(+), 363 deletions(-) diff --git a/app/auth/templates/auth/fido.html b/app/auth/templates/auth/fido.html index 836dbc0d..0d8c0305 100644 --- a/app/auth/templates/auth/fido.html +++ b/app/auth/templates/auth/fido.html @@ -11,56 +11,58 @@ {% endblock %} {% block single_content %} -
- You are on the {{ sub.plan_name() }} plan.
- You have canceled your subscription and it will end on {{ sub.next_bill_date.strftime("%Y-%m-%d") }}
-
+ You are on the {{ sub.plan_name() }} plan.
+ You have canceled your subscription and it will end on {{ sub.next_bill_date.strftime("%Y-%m-%d") }}
+
- If you change your mind you can subscribe again to SimpleLogin but please note that this will be a completely
- new subscription and
- your payment method will be charged immediately.
-
+
+ If you change your mind you can subscribe again to SimpleLogin but please note that this will be a completely
+ new subscription and
+ your payment method will be charged immediately.
+
- We are going to send you an email by the end of the subscription so maybe you can upgrade at that time.
-
- Re-subscribe
-
- You are on the {{ sub.plan_name() }} plan. Thank you very much for supporting
- SimpleLogin. 🙌
- The next billing cycle starts at {{ sub.next_bill_date.strftime("%Y-%m-%d") }}.
-
+ You are on the {{ sub.plan_name() }} plan. Thank you very much for supporting
+ SimpleLogin. 🙌
+ The next billing cycle starts at {{ sub.next_bill_date.strftime("%Y-%m-%d") }}.
+