feat(auth): enable users to delete their account #164
This commit is contained in:
16
template/auth/delete_account.templ
Normal file
16
template/auth/delete_account.templ
Normal 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>
|
||||
}
|
||||
Reference in New Issue
Block a user