feat: Begins reset password view workflow.

This commit is contained in:
2025-01-26 21:19:16 -05:00
parent d4a2048b12
commit 72221a5cb3
3 changed files with 40 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ struct UserDetail: HTML, Sendable {
let user: User?
var content: some HTML {
// TODO: Need a reset password form.
Float(shouldDisplay: user != nil, resetURL: .user(.index)) {
if let user {
form(
@@ -46,6 +47,10 @@ struct UserDetail: HTML, Sendable {
.toggleContent(.float), .setWindowLocation(to: .user(.index))
)
)
// TODO: trigger the reset password route.
button(
.class("btn-primary")
) { "Reset Password" }
}
}
}