disable password reset if no mail is set

This commit is contained in:
vabene1111
2021-05-28 18:41:30 +02:00
parent 71fdfe6acb
commit 46a8a9f60d
5 changed files with 26 additions and 17 deletions

View File

@@ -27,7 +27,11 @@
<button class="btn btn-primary" type="submit">{% trans "Sign In" %}</button>
<a class="btn btn-success" href="{% url 'account_signup' %}">{% trans "Sign Up" %}</a>
<a class="btn btn-secondary" href="{% url 'account_reset_password' %}">{% trans "Reset Password" %}</a>
{% if settings.EMAIL_HOST != '' %}
<a class="btn btn-secondary"
href="{% url 'account_reset_password' %}">{% trans "Reset Password" %}</a>
{% endif %}
</form>
</div>
</div>