Update Password

Ensure your account is using a long, random password to stay secure.

<%= form_with model: @update_password_form, url: password_update_path, method: "put", class: "mt-6 space-y-6" do |update_password_form| %>
<%= render(InputLabelComponent.new({ for: "update_password_current_password", value: "Current Password" })) %> <%= render(TextInputComponent.new({ id: "update_password_current_password", class: "block mt-1 w-full", type: "password", name: "current_password", autocomplete: "current-password" })) %> <%= render(InputErrorComponent.new({ class: "mt-2", message: @update_password_form.error_messages[:current_password] })) %>
<%= render(InputLabelComponent.new({ for: "update_password_password", value: "New Password" })) %> <%= render(TextInputComponent.new({ id: "update_password_password", class: "block mt-1 w-full", type: "password", name: "password", autocomplete: "new-password" })) %> <%= render(InputErrorComponent.new({ class: "mt-2", message: @update_password_form.error_messages[:password] })) %>
<%= render(InputLabelComponent.new({ for: "update_password_password_confirmation", value: "Confirm Password" })) %> <%= render(TextInputComponent.new({ id: "update_password_password_confirmation", class: "block mt-1 w-full", type: "password", name: "password_confirmation", autocomplete: "new-password" })) %> <%= render(InputErrorComponent.new({ class: "mt-2", message: @update_password_form.error_messages[:password_confirmation] })) %>
<%= render(PrimaryButtonComponent.new) do %> Save <% end %> <% if flash[:status] == "password-updated" %>

Saved.

<% end %>
<% end %>