This commit is contained in:
Jonas Bengtsson
2026-08-30 11:30:09 +02:00
parent 47714fa7e3
commit c139b30f6f
28 changed files with 2100 additions and 34 deletions
+22
View File
@@ -0,0 +1,22 @@
{% extends "base.html" %}
{% block title %}Password — MQTT Ingester{% endblock %}
{% block content %}
<h1>Change password</h1>
{% if error %}<p class="error">{{ error }}</p>{% endif %}
{% if identity.must_change_password %}
<p class="banner">You are using the default or admin-set password. Set a new one to continue — you will be redirected here until you do.</p>
{% endif %}
<form method="post" action="/password" class="stack">
<input type="hidden" name="csrf_token" value="{{ identity.csrf_token }}">
<label>Current password
<input type="password" name="current_password" required>
</label>
<label>New password
<input type="password" name="new_password" required minlength="8" autocomplete="new-password">
</label>
<label>Confirm new password
<input type="password" name="confirm_password" required minlength="8" autocomplete="new-password">
</label>
<button type="submit">Change password</button>
</form>
{% endblock %}