1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-22 02:18:21 +02:00

Send an e-mail verification to a new registered user

This commit is contained in:
Yohann D'ANELLO
2020-04-05 04:26:42 +02:00
parent 72e5df0cf5
commit 26281af673
8 changed files with 179 additions and 14 deletions

View File

@ -0,0 +1,16 @@
{% extends "base.html" %}
{% load i18n %}
{% block content %}
<h2>{% trans Activation %}</h2>
{% if validlink %}
{% blocktrans trimmed %}
Your account have successfully been activated. You can now <a href="{{ login_url }}">log in</a>.
{% endblocktrans %}
{% else %}
{% blocktrans trimmed %}
The link was invalid. The token may have expired. Please send us an email to activate your account.
{% endblocktrans %}
{% endif %}
{% endblock %}

View File

@ -0,0 +1,11 @@
Hi {{ user.username }},
Welcome to {{ site_name }}. Please click on the link below to confirm your registration.
{{ protocol }}://{{ domain }}{% url 'member:account_activation' uidb64=uid token=token %}
This link is only valid for a couple of days, after that you will need to contact us to validate your email.
Thanks,
{{ site_name }} team.

View File

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<h2>Account Activation</h2>
An email has been sent. Please click on the link to activate your account.
{% endblock %}