mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-04 18:25:04 +02:00
Added an setting to disable password reset mechanism.
By default the pw reset is disabled, when no email server is configured.
This commit is contained in:
parent
4f70d8b1da
commit
12b3107188
6 changed files with 105 additions and 11 deletions
|
@ -5,7 +5,7 @@
|
|||
{% block card_title %}<h5>
|
||||
<i class="fa fa-sign-in-alt fa-fw" aria-hidden="true"></i>
|
||||
{% trans %}login.card_title{% endtrans %}
|
||||
</h5>
|
||||
</h5>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -20,7 +20,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block card_content %}
|
||||
<form action="{{ path('login') }}" method="post" class="form-hor">
|
||||
<form action="{{ path('login') }}" method="post" class="form-horizontal">
|
||||
|
||||
<input type="hidden" name="_csrf_token"
|
||||
value="{{ csrf_token('authenticate') }}">
|
||||
|
@ -60,5 +60,7 @@
|
|||
</div>
|
||||
</form>
|
||||
|
||||
<a class="offset-2" href="{{ url('pw_reset_request') }}">{% trans %}pw_reset.password_forget{% endtrans %}</a>
|
||||
{% if allow_email_pw_reset %}
|
||||
<a class="offset-2" href="{{ url('pw_reset_request') }}">{% trans %}pw_reset.password_forget{% endtrans %}</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue