22 lines
956 B
HTML
22 lines
956 B
HTML
{% 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 %} |