feat: Begins reset password view workflow.
This commit is contained in:
@@ -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" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user