2023-07-12 01:00:05 +02:00
|
|
|
<div class="tab-pane fade" id="tab-config-password-policy" role="tabpanel" aria-labelledby="tab-config-password-policy">
|
2022-06-06 20:38:24 +02:00
|
|
|
<div class="card mb-4">
|
2022-10-11 11:41:06 +02:00
|
|
|
<div class="card-header d-flex fs-5">
|
2023-07-12 01:00:05 +02:00
|
|
|
<button class="btn d-md-none flex-grow-1 text-start" data-bs-target="#collapse-tab-config-password-policy" data-bs-toggle="collapse" aria-controls="collapse-tab-config-password-policy">
|
2022-06-06 20:38:24 +02:00
|
|
|
{{ lang.admin.password_policy }}
|
|
|
|
</button>
|
|
|
|
<span class="d-none d-md-block">{{ lang.admin.password_policy }}</span>
|
|
|
|
</div>
|
|
|
|
<div id="collapse-tab-config-password-policy" class="card-body collapse" data-bs-parent="#admin-content">
|
2021-09-22 20:47:10 +02:00
|
|
|
<form class="form-horizontal" data-id="passwordpolicy" role="form" method="post">
|
|
|
|
{% for name, value in password_complexity %}
|
|
|
|
{% if name == 'length' %}
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-4">
|
|
|
|
<label class="control-label col-sm-3 text-sm-end" for="length">{{ lang.admin.password_length }}:</label>
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="col-sm-2">
|
|
|
|
<input type="number" class="form-control" min="3" max="64" name="length" id="length" value="{{ value }}" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<input type="hidden" name="{{ name }}" value="0">
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mb-2">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-3 col-sm-9">
|
2021-09-22 20:47:10 +02:00
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="{{ name }}" id="{{ name }}" value="1" {% if value == 1 %}checked{% endif %}> {{ lang.admin['password_policy_'~name] }}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2022-04-13 16:37:52 +02:00
|
|
|
<div class="row mt-4 mb-2">
|
2022-04-01 07:33:01 +02:00
|
|
|
<div class="offset-sm-3 col-sm-9">
|
2021-09-22 20:47:10 +02:00
|
|
|
<div class="btn-group">
|
2022-03-31 15:24:10 +02:00
|
|
|
<button class="btn btn-sm d-block d-sm-inline btn-success" data-item="passwordpolicy" data-action="edit_selected" data-id="passwordpolicy" data-api-url='edit/passwordpolicy' data-api-attr='{}' href="#"><i class="bi bi-check-lg"></i> {{ lang.admin.save }}</button>
|
2021-09-22 20:47:10 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|