Skip to content

Commit

Permalink
Add urls in html templates
Browse files Browse the repository at this point in the history
Sometimes buttons won't work because of security theatre.
  • Loading branch information
Ivan committed Apr 7, 2023
1 parent 9f57f74 commit 195596d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 195596d

Please sign in to comment.