Skip to content

Commit 945a712

Browse files
committed
Fix hard-coded scheme in account activation email
1 parent 59b9d14 commit 945a712

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% autoescape off %}
22
Hi {{ user.username }},
33
Please click on the link to confirm your email,
4-
http://{{ domain }}{% url 'activate' uidb64=uid token=token %}
4+
{{ scheme }}://{{ domain }}{% url 'activate' uidb64=uid token=token %}
55
{% endautoescape %}

app/authentification/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def post(self, request, *args, **kwargs):
3939
message = render_to_string('acc_active_email.html', {
4040
'user': user,
4141
'domain': current_site.domain,
42+
'scheme': request.scheme,
4243
'uid': urlsafe_base64_encode(force_bytes(user.pk)).decode(),
4344
'token': account_activation_token.make_token(user),
4445
})

0 commit comments

Comments
 (0)