Commit 62fd1d6e authored by Luis García's avatar Luis García
Browse files

Add language to password reset email

parent 1d378ade
......@@ -69,12 +69,13 @@ class PasswordResetForm(forms.Form):
if not domain_override:
current_site = get_current_site(request)
site_name = current_site.name
domain = current_site.domain
#domain = current_site.domain
else:
site_name = domain = domain_override
site_name = domain_override
context = {
'email': email,
'domain': config('FRONTEND_URL'),
'language': request.LANGUAGE_CODE,
'site_name': site_name,
'uid': urlsafe_base64_encode(force_bytes(user.pk)).decode(),
'user': user,
......
......@@ -4,7 +4,7 @@ for your user account at {{ site_name }}.{% endblocktrans %}
{% trans "Please go to the following page and choose a new password:" %}
{% block reset_link %}
{{ protocol }}://paraguay.collabmap.in{% url 'password_reset_confirm' uidb64=uid token=token %}
{{ protocol }}://paraguay.collabmap.in/{{ language }}{% url 'password_reset_confirm' uidb64=uid token=token %}
{% endblock %}
{% trans "Your username, in case you've forgotten:" %} {{ user.get_username }}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment