Users

A list of all users in the system.

<%= link_to "New User", new_admin_user_path, class: "block rounded-md bg-blue-600 px-3 py-2 text-center text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600" %>
<% unless smtp_configured? %>

Email delivery not configured

<% if Rails.env.development? %> Emails are being delivered using <%= email_delivery_method %> and will open in your browser. <% else %> SMTP settings are not configured. Invitation emails and other notifications will not be sent. <% end %>

<% if Rails.env.development? %> To configure SMTP for production, set environment variables like SMTP_ADDRESS, SMTP_PORT, SMTP_USERNAME, etc. <% else %> Configure SMTP settings by setting environment variables: SMTP_ADDRESS, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, etc. <% end %>

<% end %>
<% @users.each do |user| %> <% end %>
Email Status Role 2FA Groups Actions
<%= user.email_address %> <% if user.status.present? %> <% case user.status.to_sym %> <% when :active %> Active <% when :disabled %> Disabled <% when :pending_invitation %> Pending <% end %> <% else %> - <% end %> <% if user.admin? %> Admin <% else %> User <% end %> <% if user.totp_enabled? %> <% else %> <% end %> <%= user.groups.count %>
<% if user.pending_invitation? %> <%= link_to "Resend", resend_invitation_admin_user_path(user), data: { turbo_method: :post }, class: "text-yellow-600 hover:text-yellow-900" %> <% end %> <%= link_to "Edit", edit_admin_user_path(user), class: "text-blue-600 hover:text-blue-900" %> <%= link_to "Delete", admin_user_path(user), data: { turbo_method: :delete, turbo_confirm: "Are you sure you want to delete this user?" }, class: "text-red-600 hover:text-red-900" %>