diff --git a/apps/authorization/tasks.py b/apps/authorization/tasks.py index cb186142..d44c2b5c 100644 --- a/apps/authorization/tasks.py +++ b/apps/authorization/tasks.py @@ -16,7 +16,7 @@ def send_confirm_email(user_id: int, country_code: str): try: obj = account_models.User.objects.get(id=user_id) obj.send_email(subject=_('Email confirmation'), - message=obj.confirm_email_template(country_code)) + message=obj.confirm_email_template(country_code, obj.username, _('Email confirmation'))) except Exception as e: logger.error(f'METHOD_NAME: {send_confirm_email.__name__}\n' f'DETAIL: user {user_id}, - {e}') diff --git a/project/templates/account/password_reset_email.html b/project/templates/account/password_reset_email.html index 52bbbd2b..4d61147d 100644 --- a/project/templates/account/password_reset_email.html +++ b/project/templates/account/password_reset_email.html @@ -1,3 +1,4 @@ +{% load i18n %}{% autoescape off %}
diff --git a/project/templates/authorization/confirm_email.html b/project/templates/authorization/confirm_email.html index 3e51add7..c05c85b0 100644 --- a/project/templates/authorization/confirm_email.html +++ b/project/templates/authorization/confirm_email.html @@ -1,10 +1,79 @@ {% load i18n %}{% autoescape off %} -{% blocktrans %}You're receiving this email because you trying to register new account at {{ site_name }}.{% endblocktrans %} + + + + + + + +
+
+
+ Follow us
+