mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Send an email when creating an account via POST /register
This commit is contained in:
@ -15,18 +15,11 @@
|
||||
{% block content %}
|
||||
<h1 class="title">{% trans %}Register{% endtrans %}</h1>
|
||||
|
||||
{% if user_registered %}
|
||||
{% trans user_name=user_registered.get_display_name() %}Welcome {{ user_name }}!{% endtrans %}<br>
|
||||
{% trans %}You successfully registered and you will soon receive a confirmation mail.{% endtrans %}<br>
|
||||
{% trans username=user_registered.username %}Your username is {{ username }}.{% endtrans %}<br>
|
||||
|
||||
{% else %}
|
||||
<form action="{{ url('core:register') }}" method="post">
|
||||
{% csrf_token %}
|
||||
{% render_honeypot_field %}
|
||||
{{ form }}
|
||||
<input type="submit" value="{% trans %}Register{% endtrans %}" />
|
||||
</form>
|
||||
{% endif %}
|
||||
<form action="{{ url('core:register') }}" method="post">
|
||||
{% csrf_token %}
|
||||
{% render_honeypot_field %}
|
||||
{{ form }}
|
||||
<input type="submit" value="{% trans %}Register{% endtrans %}" />
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
17
core/templates/core/register_confirm_mail.jinja
Normal file
17
core/templates/core/register_confirm_mail.jinja
Normal file
@ -0,0 +1,17 @@
|
||||
{% autoescape off %}
|
||||
{% trans %}You're receiving this email because you created an account on the AE website.{% endtrans %}
|
||||
|
||||
{% trans %}Your username, in case it was not given to you: {% endtrans %} {{ username }}
|
||||
|
||||
{% trans %}
|
||||
As this is the website of the students of the AE, by the students of the AE,
|
||||
for the students of the AE, you won't be able to do many things without subscribing to the AE.
|
||||
To make a contribution, contact a member of the association's board, either directly or by email at ae@utbm.fr.
|
||||
{% endtrans %}
|
||||
|
||||
{% trans %}Wishing you a good experience among us! {% endtrans %}
|
||||
|
||||
{% trans %}The AE team{% endtrans %}
|
||||
|
||||
{% endautoescape %}
|
||||
|
Reference in New Issue
Block a user