Account Settings

<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: "space-y-6" }) do |f| %> <%= render "devise/shared/error_messages", resource: resource %>
<%= f.label :email, class: "label" %> <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input input-bordered w-full" %>
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
Currently waiting confirmation for: <%= resource.unconfirmed_email %>
<% end %>
Change Password
<%= f.label :password, class: "label" do %> New Password (leave blank if you don't want to change it) <% end %> <%= f.password_field :password, autocomplete: "new-password", class: "input input-bordered w-full" %> <% if @minimum_password_length %> <% end %>
<%= f.label :password_confirmation, "Confirm New Password", class: "label" %> <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "input input-bordered w-full" %>
<%= f.label :current_password, class: "label" do %> Current Password (required to confirm changes) <% end %> <%= f.password_field :current_password, autocomplete: "current-password", class: "input input-bordered w-full" %>
<%= f.submit "Update Account", class: "btn btn-primary" %>
<% end %>
Danger Zone

Delete Account

Once you delete your account, there is no going back. Please be certain.

<%= button_to registration_path(resource_name), class: "btn btn-error", data: { confirm: "Are you sure?", turbo_confirm: "Are you sure you want to delete your account? This action cannot be undone." }, method: :delete do %> Delete Account <% end %>
<%= link_to "← Back", :back, class: "btn btn-ghost btn-sm" %>