This repository has been archived on 2025-08-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
web-app-template/template/auth/delete_account.templ
Tim Wundenberg 6c1edcd0a8
All checks were successful
Build and Push Docker Image / Explore-Gitea-Actions (push) Successful in 54s
Build Docker Image / Explore-Gitea-Actions (push) Successful in 45s
feat(auth): check password when deleting account #175
2024-09-13 12:02:06 +02:00

23 lines
597 B
Plaintext

package auth
templ DeleteAccountComp() {
<form
class="max-w-xl px-2 mx-auto flex flex-col gap-4 h-full justify-center"
hx-post="/api/auth/delete-account"
hx-swap="none"
>
<h2 class="text-6xl mb-6">
Delete Account
</h2>
<p class="text-xl text-red-500 mb-4">
Are you sure you want to delete your account? This action is irreversible.
</p>
<label class="input input-bordered flex items-center gap-2">
<input type="password" class="grow" placeholder="Password" name="password"/>
</label>
<button class="btn btn-error self-end">
Delete Account
</button>
</form>
}