Fix translations for HIBP prompt

This commit is contained in:
Quantum 2022-03-24 00:04:59 -04:00 committed by Guanzhong Chen
parent 3be3763f7f
commit ce534cc4a4

View File

@ -4,8 +4,8 @@
<div class="centered-form">
<form action="" method="post" class="form-area">
{% if request.session.password_pwned %}
<h4>{{ _('We found your password in <a href="https://haveibeenpwned.com/Passwords">a database of compromised passwords</a>.
To protect your account, we are requiring you to change your password to a more secure password.') }}</h4>
<h4>{{ (_('We found your password in [a database of compromised passwords][0].') + '\n\n [0]: https://haveibeenpwned.com/Passwords')|markdown('default', strip_paragraphs=True) }}
{{ _('To protect your account, we are requiring you to change your password to a more secure password.') }}</h4>
{% endif %}
{% csrf_token %}
<table border="0" class="django-as-table">{{ form.as_table() }}</table>