diff --git a/src/core/templates/registration/core_password_reset_email.html b/src/core/templates/registration/core_password_reset_email.html index 00ee6fc7af0b1ab6b8e550ad6eec9af4a4223d73..d0f63c7fdae85eb7ccfebcbeef46602e1618d8ad 100644 --- a/src/core/templates/registration/core_password_reset_email.html +++ b/src/core/templates/registration/core_password_reset_email.html @@ -1,4 +1,5 @@ {% 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}} diff --git a/src/core/templates/registration/registration_email.html b/src/core/templates/registration/registration_email.html index 3e47baa9eacdba9bfde6e9cf8e4001dc4a692ec3..c08a61a9f3d88e3b0a79fef5efbb407865b433d3 100644 --- a/src/core/templates/registration/registration_email.html +++ b/src/core/templates/registration/registration_email.html @@ -1,11 +1,12 @@ {% 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. diff --git a/src/core/views/auth.py b/src/core/views/auth.py index 897863c35555266162b58f699f261ac513156bd0..a5ac41e65620789f151136238ad991eeb22da6db 100644 --- a/src/core/views/auth.py +++ b/src/core/views/auth.py @@ -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