mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-08 07:41:58 +08:00
This switches Clover to use the form method for forms, which automatically handles adding the appropriate csrf tag, so you don't need to duplicate the path in a separate csrf_tag call. The form method comes from the forme_route_csrf plugin, which is what CloverAdmin already uses. While here, change some rodauth forms to use *_path instead of "/" + *_route. Also, change some "#{@project.path}#{@pg.path}" to path(@pg).
29 lines
889 B
Text
29 lines
889 B
Text
<% @page_title = "Create Account" %>
|
|
|
|
<% @page_message = "Create a new account" %>
|
|
|
|
<% form(class: "rodauth space-y-6", role: :form, method: :post) do %>
|
|
<%== rodauth.create_account_additional_form_tags %>
|
|
|
|
<%== part(
|
|
"components/form/text",
|
|
name: "name",
|
|
label: "Full Name",
|
|
attributes: {
|
|
required: true,
|
|
autocomplete: "name"
|
|
}
|
|
) %>
|
|
|
|
<%== render("components/rodauth/login_field") %>
|
|
<%== render("components/rodauth/password_field") %>
|
|
<%== part("components/rodauth/password_field", confirm: true) %>
|
|
<%== render("components/form/cloudflare_turnstile") %>
|
|
|
|
<div class="flex flex-col text-center">
|
|
<%== part("components/form/submit_button", text: "Create Account") %>
|
|
<a href="/login" class="mt-2 text-sm font-semibold leading-6 text-gray-900">Sign in to existing account</a>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%== render("auth/social_buttons") %>
|