Frontend: Account-Bereich (GET /user/info, POST /user/delete)

- Account-Section nur sichtbar wenn eingeloggt; zeigt Nutzername und
  Mitglied-seit-Datum aus /user/info
- Konto loeschen in aufklappbarer Danger-Zone, Passwortbestaetigung
  plus zusaetzliche confirm()-Rueckfrage (unwiderruflich)
- nach Loeschung zurueck zur Login-Ansicht via refreshHeader

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-01 11:59:53 +02:00
parent a47f41bbfa
commit d1a269db2f
3 changed files with 41 additions and 0 deletions
+14
View File
@@ -46,6 +46,20 @@
<p class="msg" id="entry-msg"></p>
</section>
<!-- Konto -->
<section id="account" hidden>
<p id="account-info"></p>
<details class="danger">
<summary>Konto löschen</summary>
<form id="delete-form">
<p>Löscht dein Konto samt Beiträgen und Votes unwiderruflich.</p>
<input name="pass1" type="password" placeholder="Passwort bestätigen" autocomplete="current-password">
<button type="submit">Konto endgültig löschen</button>
</form>
<p class="msg" id="delete-msg"></p>
</details>
</section>
<!-- Feed -->
<section id="feed"></section>
<div id="sentinel"></div>