Skip to content
Snippets Groups Projects
Commit 805497b6 authored by HeJ's avatar HeJ
Browse files

core: use hub_absolute for account activation and password reset mails

parent 95a4d2c3
Branches
Tags
No related merge requests found
{% load i18n %}
{% load hub_absolute %}
{% autoescape off %}
{% trans "Hello" %} {{ user.get_full_name|default:user.username }},
{% blocktranslate with site_name_safe=site_name|safe %}
......@@ -6,7 +7,7 @@ You're receiving this email because you requested a password reset for your user
Please use the following link and choose a new password:
{% endblocktranslate %}
{% block reset_link %}
{{ protocol }}://{{ domain }}{% url reset_url uidb64=uid token=token %}
{% hub_absolute 'plainui:password_reset_confirm' uidb64=uid token=token %}
{% endblock reset_link %}
{% blocktranslate %}
Your username, in case you’ve forgotten: {{ user.username}}
......
{% load i18n %}
{% load hub_absolute %}
{% autoescape off %}
{% trans "Hello" %} {{ user.get_full_name|default:user.username }},
{% blocktranslate %}
You're receiving this email because you requested to create an account at "{{ site_name }}".
To complete the registration please use the following link:
{% endblocktranslate %}
{{ protocol }}://{{ domain }}{% url activation_url uid_b64=uid channel_id=cid token=token %}
{% hub_absolute activation_url uid_b64=uid channel_id=cid token=token %}
{% blocktranslate %}
If you did not register for an account, you may ignore this message.
......
......@@ -79,7 +79,7 @@ class BaseRegistrationView(FormView):
html_email_template_name = None
subject_template_name = 'registration/registration_subject.txt'
success_url = reverse_lazy('signup_done')
activation_url = reverse_lazy('signup_activate')
activation_url = 'signup_activate'
template_name = 'registration/registration_form.html'
title = _('Registration')
token_generator = channel_activation_token
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment