aurweb/templates/passreset.html
moson-mo 58158505b0
fix: browser hints for password fields
Co-authored-by: eNV25 <env252525@gmail.com>
Signed-off-by: moson-mo <mo-son@mailbox.org>
2023-06-11 21:04:35 +02:00

76 lines
3.4 KiB
HTML

{% extends "partials/layout.html" %}
{% block pageContent %}
<div class="box">
<h2>{% trans %}Password Reset{% endtrans %}</h2>
<p>
{% if step == "confirm" %}
{% trans %}Check your e-mail for the confirmation link.{% endtrans %}
{% elif step == "complete" %}
{% trans %}Your password has been reset successfully.{% endtrans %}
{% elif resetkey %}
<!-- Provided with a resetkey. -->
{% include "partials/error.html" %}
<form method="post">
<table>
<tbody>
<tr>
<td>{% trans %}Confirm your user name or primary e-mail address:{% endtrans %}</td>
<td>
<input type="text" name="user" size="30" maxlength="64"
value="{{ user or '' }}">
</td>
</tr>
<tr>
<td>{% trans %}Enter your new password:{% endtrans %}</td>
<td>
<input type="password" name="password" size="30" autocomplete="new-password"
value="{{ password or '' }}">
</td>
</tr>
<tr>
<td>{% trans %}Confirm your new password:{% endtrans %}</td>
<td>
<input type="password" name="confirm" size="30" autocomplete="new-password"
value="{{ confirm or '' }}">
</td>
</tr>
</tbody>
</table>
<br>
<input type="hidden" name="resetkey"
value="{{ resetkey }}">
<input class="button" type="submit"
value="{% trans %}Continue{% endtrans %}">
</form>
{% else %}
<!-- Default page with prompt for user name/e-mail. -->
{% set url = "https://lists.archlinux.org/mailman3/lists/aur-general.lists.archlinux.org/" %}
{{ "If you have forgotten the user name and the primary e-mail "
"address you used to register, please send a message to the "
"%saur-general%s mailing list."
| tr
| format(
'<a href="%s">' | format(url),
"</a>")
| safe
}}
</p>
{% include "partials/error.html" %}
<form method="post">
<p>
{% trans %}Enter your user name or your primary e-mail address:{% endtrans %}
<input type="text" name="user" size="30" maxlength="64"
value="{{ user or '' }}">
</p>
<input class="button" type="submit"
value="{% trans %}Continue{% endtrans %}">
</form>
{% endif %}
</p>
</div>
{% endblock %}