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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user