feat: classic ui account deletion

This commit is contained in:
2026-10-26 02:51:52 +01:00
parent 0beedfbf0a
commit 6aebad1f0f
4 changed files with 98 additions and 8 deletions

View File

@@ -103,10 +103,11 @@
{% if let Some(err) = error %}
<p class="error">{{ err }}</p>
{% endif %}
<p style="font-size:.85em;opacity:.7">This user and all their data will be permanently deleted. Enter your own password to confirm.</p>
<form method="POST" action="/users/{{ profile_user_id }}/delete">
<input type="hidden" name="_csrf" value="{{ ctx.csrf_token }}">
<input type="password" name="password" placeholder="Your password" required autocomplete="current-password">
<button type="submit">Delete user</button>
<button type="submit" class="btn-small" style="color:#e57a7a;border-color:rgba(229,122,122,.3)">Delete user</button>
</form>
</section>
{% endif %}