Files
JonnyBravoandClaude Code d2cd6ebfd7 Fix: Passwort ändern mit Bestätigungsfeld (Prüfung auf Übereinstimmung)
- Profil: zweites Passwortfeld 'Neues Passwort wiederholen'
- Clientseitige Validierung: beide Felder müssen übereinstimmen

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-23 15:02:53 +01:00

35 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block title %}Profil{% endblock %}
{% block content %}
<div class="page-head">
<h1 class="hero-title">Profil</h1>
<p class="hero-sub">Angemeldet als <strong>{{ current_user.username }}</strong>
{% if current_user.is_admin %}<span class="badge">Admin</span>{% endif %}</p>
</div>
<section class="panel panel-account">
<h2>Passwort ändern</h2>
<form id="passwort-form" class="form form-narrow">
<div>
<label for="altes-passwort">Aktuelles Passwort</label>
<input id="altes-passwort" type="password" required autocomplete="current-password" />
</div>
<div>
<label for="neues-passwort">Neues Passwort (mind. 6 Zeichen)</label>
<input id="neues-passwort" type="password" required autocomplete="new-password" minlength="6" />
</div>
<div>
<label for="neues-passwort-wdh">Neues Passwort wiederholen</label>
<input id="neues-passwort-wdh" type="password" required autocomplete="new-password" minlength="6" />
</div>
<div>
<button type="submit" class="btn btn-primary">Passwort ändern</button>
</div>
</form>
<div id="passwort-message" class="alert hidden"></div>
</section>
{% endblock %}
{% block scripts %}
<script src="{{ url_for('static', filename='js/profil.js') }}"></script>
{% endblock %}