mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-07 15:21: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).
12 lines
454 B
Text
12 lines
454 B
Text
<% @page_title = "Verify Account" %>
|
|
|
|
<% @page_message = "Verify your account" %>
|
|
|
|
<% form(role: :form, method: :post, class: "rodauth space-y-6") do %>
|
|
<%== rodauth.verify_account_additional_form_tags %>
|
|
|
|
<div class="flex flex-col text-center">
|
|
<%== part("components/form/submit_button", text: "Verify Account") %>
|
|
<a href="/login" class="mt-2 text-sm font-semibold leading-6 text-gray-900">Sign in to another account</a>
|
|
</div>
|
|
<% end %>
|