Member since <%= @user.created_at.strftime("%b %e '%y") %>
Removing a social account identity can solve certain sign in issues, for example:
<%= identity.provider.capitalize %> UID: <%= identity.uid %> - Username: <%= identity.auth_data_dump.present? ? identity.auth_data_dump["info"]["nickname"] : "no auth data dump available! 😞" %>
<%= f.submit "Delete #{identity.provider.capitalize} Identity", class: "btn btn-danger" %> <% end %> <% end %>To merge a duplicate account, make sure you are currently on the page of the user you want to KEEP. Below, add the user id of the account to merge information from, and delete.
<%= form_for(@user, url: merge_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible. Merging will delete all the other users content and combine it with this user')" }) do |f| %> <%= f.label "User to be deleted:" %> <%= f.text_field :merge_user_id, placeholder: "#ID" %> <%= f.submit "Merge Users", class: "btn btn-danger" %> <% end %>This is extremely destructive. Banishing will delete all the user's existing content and change their username to @spam_###.
Do not do this lightly.
<%= form_for(@user, url: banish_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible. Banishing will delete all articles and turn their username into @spam_###')" }) do %> <% end %> <% elsif current_user.has_role?(:super_admin) || current_user.has_role?(:support_admin) %>This is not a new user. You are only allowed to take this action because you are a super admin or a support admin.
This is extremely destructive. Banishing will delete all the user's existing content and change their username to @spam_###.
Do not do this lightly.
<%= form_for(@user, url: banish_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible. Banishing will delete all articles and turn their username into @spam_###')" }) do %> <% end %> <% else %>This is not a new user. Only super admins or support admins are allowed to banish this user.
<% end %>This will completely destroy the user and all of their activity from our database. This action is irreversible.
Do not do this lightly.
<%= form_for(@user, url: full_delete_admin_user_path(@user), html: { method: :post, onsubmit: "return confirm('Are you sure? This is extremely destructive and irreversible.')" }) do |f| %> <% end %>