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/change_password.templ
Tim Wundenberg 6a656b15f0
All checks were successful
Build and Push Docker Image / Explore-Gitea-Actions (push) Successful in 58s
feat(auth): change password user self service #171
2024-09-12 22:38:09 +02:00

23 lines
657 B
Plaintext

package auth
templ ChangePasswordComp() {
<form
class="max-w-xl px-2 mx-auto flex flex-col gap-4 h-full justify-center"
hx-post="/api/auth/change-password"
hx-swap="none"
>
<h2 class="text-6xl mb-10">
Change Password
</h2>
<label class="input input-bordered flex items-center gap-2">
<input type="password" class="grow" placeholder="Current Password" name="current-password"/>
</label>
<label class="input input-bordered flex items-center gap-2">
<input type="password" class="grow" placeholder="New Password" name="new-password"/>
</label>
<button class="btn btn-primary self-end">
Change Password
</button>
</form>
}