lib/generators/rodauth/templates/app/views/rodauth/verify_account.html.erb in rodauth-rails-0.18.1 vs lib/generators/rodauth/templates/app/views/rodauth/verify_account.html.erb in rodauth-rails-1.0.0
- old
+ new
@@ -1,7 +1,7 @@
<% content_for :title, rodauth.verify_account_page_title %>
-<%= form_with url: rodauth.verify_account_path, method: :post do |form| %>
+<%= form_with url: rodauth.verify_account_path, method: :post, data: { turbo: false } do |form| %>
<% if rodauth.verify_account_set_password? %>
<div class="form-group mb-3">
<%= form.label "password", rodauth.password_label, class: "form-label" %>
<%= form.password_field rodauth.password_param, value: "", id: "password", autocomplete: rodauth.password_field_autocomplete_value, required: true, class: "form-control #{"is-invalid" if rodauth.field_error(rodauth.password_param)}", aria: ({ invalid: true, describedby: "password_error_message" } if rodauth.field_error(rodauth.password_param)) %>
<%= content_tag(:span, rodauth.field_error(rodauth.password_param), class: "invalid-feedback", id: "password_error_message") if rodauth.field_error(rodauth.password_param) %>