From 195596d8cc4f11d1868fca46fc962233568ec98d Mon Sep 17 00:00:00 2001 From: Ivan Date: Fri, 7 Apr 2023 18:23:35 +0200 Subject: [PATCH] Add urls in html templates Sometimes buttons won't work because of security theatre. --- CHANGELOG.md | 6 ++++++ accounts/views.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e47c5c0..001671f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.0.37] - 2023-04-07 + +### Added + +- Links in the email templates in case buttons do not work [@AivGitHub](https://github.com/AivGitHub/). + ## [0.0.36] - 2023-04-06 ### Fixed diff --git a/accounts/views.py b/accounts/views.py index 4b3a7a6..01a6494 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -549,6 +549,7 @@ def process_signed_up_user(self, user: User) -> str: 'p_messages': [ _("You're almost there! Click the button above to verify your email."), _('This link will expire in 2 hours and can only be used once.'), + _('If the button above does not work copy and paste url: %s.' % url), ], 'url_message': _('Verify your email address'), 'url': url, @@ -669,6 +670,7 @@ def get(self, request, *args, **kwargs): 'p_messages': [ _('Congratulations! You can Sign in now.'), _('Greetings from %s Family!' % settings.PROJECT_TITLE), + _('If the button above does not work copy and paste url: %s.' % settings.PAYMENT_HOST), ], 'url_message': _('Go back Home!'), 'url': settings.PAYMENT_HOST,