aboutsummaryrefslogtreecommitdiff
path: root/src/pages/password_reset_requests/new_page.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/password_reset_requests/new_page.cr')
-rw-r--r--src/pages/password_reset_requests/new_page.cr15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/pages/password_reset_requests/new_page.cr b/src/pages/password_reset_requests/new_page.cr
new file mode 100644
index 0000000..368784c
--- /dev/null
+++ b/src/pages/password_reset_requests/new_page.cr
@@ -0,0 +1,15 @@
+class PasswordResetRequests::NewPage < AuthLayout
+ needs operation : RequestPasswordReset
+
+ def content
+ h1 "Reset your password"
+ render_form(@operation)
+ end
+
+ private def render_form(op)
+ form_for PasswordResetRequests::Create do
+ mount Shared::Field, attribute: op.email, label_text: "Email", &.email_input
+ submit "Reset Password", flow_id: "request-password-reset-button"
+ end
+ end
+end