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:
16
templates/registration/account_activation_complete.html
Normal file
16
templates/registration/account_activation_complete.html
Normal 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 %}
|
11
templates/registration/account_activation_email.html
Normal file
11
templates/registration/account_activation_email.html
Normal 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.
|
@ -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 %}
|
Reference in New Issue
Block a user