Files
2026-11-14 17:05:01 +00:00

37 lines
1.5 KiB
HTML

{% extends "admin/base.html" %}
{% block admin_content %}
<div class="admin-panel" style="max-width:520px;">
<h1>Change password</h1>
<p class="field-hint">
The current password is required. Changing it signs out every other
browser that is logged in; this session stays signed in.
</p>
<form method="post" action="{{ url_for('admin.admin_password') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<div class="form-group">
<label for="current-password">Current password</label>
<input type="password" id="current-password" name="current_password"
autocomplete="current-password" maxlength="1024" required autofocus>
</div>
<div class="form-group">
<label for="new-password">New password</label>
<input type="password" id="new-password" name="new_password"
autocomplete="new-password" minlength="{{ min_length }}"
maxlength="1024" required>
<p class="field-hint">At least {{ min_length }} characters; well-known defaults are rejected.</p>
</div>
<div class="form-group">
<label for="confirm-password">Repeat new password</label>
<input type="password" id="confirm-password" name="confirm_password"
autocomplete="new-password" minlength="{{ min_length }}"
maxlength="1024" required>
</div>
<button type="submit" class="btn btn-primary">Update password</button>
</form>
</div>
{% endblock %}