Added debug mode for frontend to handle email activation link changes

This commit is contained in:
Keannu Christian Bernasol 2023-07-23 22:36:19 +08:00
parent a2d1fb8081
commit f550134998
2 changed files with 9 additions and 20 deletions

View file

@ -1,26 +1,14 @@
{% load i18n %}
{% block subject %}
{% blocktrans %}Account activation on {{ site_name }}{% endblocktrans %}
{% endblock subject %}
{% block text_body %}
{% blocktrans %}You're receiving this email because you need to finish activation process on {{ site_name }}.{% endblocktrans %}
{% trans "Please open the following link to activate your account in-app:" %}
{{ domain }}://{{ url|safe }}
{% trans "Thanks you for using StudE!" %}
{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
{% endblock text_body %}
{% block html_body %}
<p>{% blocktrans %}You're receiving this email because you need to finish activation process on {{ site_name }}.{% endblocktrans %}</p>
<p>{% trans "Please go to the following page to activate your account in-app:" %}</p>
<p><a href="{{domain}}://{{url}}">{{ domain }}://{{url}}</a></p>
<p>{% trans "Please click on the button below to activate your account in-app:" %}</p>
<p>
<a href="https://lemeow125.github.io/simple-redirect/#/redirect/{{ domain }}/activation/{{uid}}/{{token}}" style="background-color: #007BFF; color: white; padding: 10px 20px; text-align: center; text-decoration: none; display: inline-block;">
Activate Account
</a>
</p>
<p>{% blocktrans %}Many thanks from the {{ site_name }} team{% endblocktrans %}</p>
{% endblock html_body %}
{% endblock html_body %}