Profile
<%= form_for current_user, url: update_contact_settings_profile_index_path, method: :patch, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
<%= f.label :first_name, class: 'label' %>
<%= f.text_field :first_name, required: true, class: 'base-input' %>
<%= f.label :last_name, class: 'label' %>
<%= f.text_field :last_name, required: true, class: 'base-input' %>
<%= f.label :email, 'Email', class: 'label' %>
<%= f.email_field :email, autocomplete: 'off', class: 'base-input' %>
<%= f.button button_title(title: 'Update', disabled_with: 'Updating'), class: 'base-button' %>
<% end %>
Signature
<% signature = UserConfigs.load_signature(current_user) %>
<% if signature %>
<% end %>
Update Signature
Change Password
<%= form_for current_user, url: update_password_settings_profile_index_path, method: :patch, html: { autocomplete: 'off', class: 'space-y-4' } do |f| %>
<%= f.label :password, 'New password', class: 'label' %>
<%= f.password_field :password, autocomplete: 'off', class: 'base-input' %>
<%= f.label :password_confirmation, 'Confirm new password', class: 'label' %>
<%= f.password_field :password_confirmation, autocomplete: 'off', class: 'base-input' %>
<%= f.button button_title(title: 'Update', disabled_with: 'Updating'), class: 'base-button' %>
<% end %>
Two-Factor Authentication
<% if current_user.otp_required_for_login %>
<%= svg_icon('circle_check', class: 'stroke-success inline flex-none w-5 h-5') %>
2FA has been configured.
🔓 Remove 2FA
<% else %>
<%= svg_icon('info_circle', class: 'stroke-warning inline flex-none w-5 h-5') %>
2FA is not configured.
🔒 Set up 2FA
<% end %>