mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-29 14:51:54 +00:00
fd5e513ad6
A malicious user could use this to test which email addresses are in the user database.
43 lines
1.6 KiB
HTML
43 lines
1.6 KiB
HTML
{% extends 'layout.html' %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Reset Password" %}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="columns is-centered">
|
|
<div class="column is-half">
|
|
<div class="block">
|
|
<h1 class="title">{% trans "Reset Password" %}</h1>
|
|
|
|
{% if sent_message %}
|
|
<p class="notification is-primary">
|
|
{% blocktrans trimmed %}
|
|
A password reset link will be sent to <strong>{{ email }}</strong> if there is an account using that email address.
|
|
{% endblocktrans %}
|
|
</p>
|
|
{% endif %}
|
|
|
|
<p>{% trans "A link to reset your password will be sent to your email address" %}</p>
|
|
<form name="password-reset" method="post" action="/password-reset">
|
|
{% csrf_token %}
|
|
<div class="field">
|
|
<label class="label" for="id_email_register">{% trans "Email address:" %}</label>
|
|
<div class="control">
|
|
<input type="email" name="email" maxlength="254" class="input" id="id_email_register">
|
|
{% if error %}
|
|
<p class="help is-danger">{{ error }}</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="field is-grouped">
|
|
<div class="control">
|
|
<button class="button is-link" type="submit">{% trans "Reset password" %}</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
|