feat(auth): enable users to delete their account #164

This commit is contained in:
2024-09-11 18:17:44 +02:00
parent 2542942d78
commit 9039998e98
5 changed files with 129 additions and 15 deletions

View File

@@ -0,0 +1,16 @@
package auth
templ DeleteAccountComp() {
<main class="h-full flex items-center justify-center">
<div class="card bg-neutral text-neutral-content w-96">
<div class="card-body items-center text-center">
<h2 class="card-title">Delete Account</h2>
<p>Do you really want to delete all your data? This cannot be undone!</p>
<div class="card-actions justify-end mt-4">
<a href="/" class="btn btn-ghost">Cancel</a>
<button hx-get="/api/auth/delete-account" class="btn btn-primary">Delete Account</button>
</div>
</div>
</div>
</main>
}