<%= render partial: "admin/shared/card_header",
locals: {
header: "Authentication",
state: "collapse",
target: "authenticationBodyContainer",
expanded: false
} %>
General settings
"
data-tooltip="Unchecking this will enable Email Registration">
<%= f.check_box :invite_only_mode,
checked: private_forem_or_no_enabled_auth_options,
data: { action: "config#adjustAuthenticationOptions", "config-target": "inviteOnlyMode" },
class: "crayons-checkbox" %>
<%= admin_config_label :invite_only_mode, "Invite-only mode", model: Settings::Authentication %>
<%= admin_config_description Constants::Settings::Authentication::DETAILS[:invite_only_mode][:description] %>
<%= inline_svg_tag("email.svg", class: "crayons-icon", aria: true, title: "Email icon") %>
<%= f.text_field :auth_providers_to_enable,
id: "auth_providers_to_enable",
class: "form-control hidden",
value: Settings::Authentication.providers.join(","),
readonly: true %>
<% authentication_available_providers.each do |provider| %>
<% next if provider.provider_name == :apple && !Flipper.enabled?(:apple_auth) %>
<%= inline_svg_tag("#{provider.provider_name}.svg", class: "crayons-icon", aria: true, title: "#{provider.official_name} logo") %>
<% auth_partial = provider.provider_name == :apple ? "apple_auth_provider_settings" : "auth_provider_settings" %>
<%= render partial: "forms/authentication/#{auth_partial}",
locals: {
f: f,
provider: provider
} %>
<% end %>
Changing authentication keys will not take effect until this Forem instance is restarted.
<%= render "form_submission", f: f %>