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

Add links to resend mail confirmations

This commit is contained in:
Yohann D'ANELLO
2020-04-05 09:48:23 +02:00
parent fbc25240e6
commit 3516b1fa04
9 changed files with 51 additions and 16 deletions

View File

@ -2,7 +2,7 @@ Hi {{ user.username }},
Welcome to {{ site_name }}. Please click on the link below to confirm your registration.
{{ protocol }}://{{ domain }}{% url 'registration:account_activation' uidb64=uid token=token %}
{{ protocol }}://{{ domain }}{% url 'registration:email_validation' 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.

View File

@ -2,7 +2,7 @@
{% load static %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load pretty_money %}
{% load perms %}
{% block content %}
<div class="card bg-light shadow">
@ -20,6 +20,15 @@
<dt class="col-xl-6">{% trans 'email'|capfirst %}</dt>
<dd class="col-xl-6"><a href="mailto:{{ object.email }}">{{ object.email }}</a></dd>
{% if not object.profile.email_confirmed and "member.change_profile_email_confirmed"|has_perm:object.profile %}
<dd class="col-xl-12">
<div class="alert alert-warning">
{% trans "This user doesn't have confirmed his/her e-mail address." %}
<a href="{% url "registration:email_validation_resend" pk=object.pk %}">{% trans "Click here to resend a validation link." %}</a>
</div>
</dd>
{% endif %}
<dt class="col-xl-6">{% trans 'password'|capfirst %}</dt>
<dd class="col-xl-6">
<a class="small" href="{% url 'password_change' %}">