Browse Source

Fix hard-coded scheme in account activation email

pull/504/head
Clemens Wolff 4 years ago
parent
commit
945a712d23
2 changed files with 2 additions and 1 deletions
  1. 2
      app/authentification/templates/acc_active_email.html
  2. 1
      app/authentification/views.py

2
app/authentification/templates/acc_active_email.html

@ -1,5 +1,5 @@
{% autoescape off %}
Hi {{ user.username }},
Please click on the link to confirm your email,
http://{{ domain }}{% url 'activate' uidb64=uid token=token %}
{{ scheme }}://{{ domain }}{% url 'activate' uidb64=uid token=token %}
{% endautoescape %}

1
app/authentification/views.py

@ -39,6 +39,7 @@ class SignupView(TemplateView):
message = render_to_string('acc_active_email.html', {
'user': user,
'domain': current_site.domain,
'scheme': request.scheme,
'uid': urlsafe_base64_encode(force_bytes(user.pk)).decode(),
'token': account_activation_token.make_token(user),
})

Loading…
Cancel
Save