blob: 16a6635e0b18917f6f6e96ce853d2f6369f3c680 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
class PasswordResets::NewPage < AuthLayout
needs operation : ResetPassword
needs user_id : Int64
def content
h1 "Reset your password"
render_password_reset_form(@operation)
end
private def render_password_reset_form(op)
form_for PasswordResets::Create.with(@user_id) do
mount Shared::Field, attribute: op.password, label_text: "Password", &.password_input(autofocus: "true")
mount Shared::Field, attribute: op.password_confirmation, label_text: "Confirm Password", &.password_input
submit "Update Password", flow_id: "update-password-button"
end
end
end
|