<% # Copyright (C) 2012 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %>
<%= t('Self Registration') %>
<%= f.radio_button :self_registration, 'none', id: "self_registration_none_#{presenter.id_suffix(aac)}", checked: aac.self_registration == 'none' %> <%= f.label :self_registration, t('Disabled'), for: "self_registration_none_#{presenter.id_suffix(aac)}", class: 'ic-Label' %>
<%= f.radio_button :self_registration, 'all', id: "self_registration_all_#{presenter.id_suffix(aac)}", checked: aac.self_registration == 'all' %> <%= f.label :self_registration, t('All Account Types'), for: "self_registration_all_#{presenter.id_suffix(aac)}", class: 'ic-Label' %>
<%= f.radio_button :self_registration, 'observer', id: "self_registration_observers_#{presenter.id_suffix(aac)}", checked: aac.self_registration == 'observer' %> <%= f.label :self_registration, t('Observer Accounts Only'), for: "self_registration_observers_#{presenter.id_suffix(aac)}", class: 'ic-Label' %>
<% if DynamicSettings.find(tree: :private)['recaptcha_server_key'] %>
<%= f.check_box :enable_captcha, class: 'enable_captcha_checkbox', id: "enable_captcha_#{presenter.id_suffix(aac)}" %> <%= f.label :enable_captcha, t('Require Captcha for Self Registration'), for: "enable_captcha_#{presenter.id_suffix(aac)}", class: "ic-Label" %>
<% end %> <% if aac.account.mfa_settings != :disabled %>
<%= f.check_box :otp_via_sms, class: 'otp_via_sms_checkbox', id: "otp_via_sms_#{presenter.id_suffix(aac)}" %> <%= f.label :otp_via_sms, t('Send one-time passcodes via SMS (US carriers only)'), for: "otp_via_sms_#{presenter.id_suffix(aac)}", class: "ic-Label" %>
<% end %>
<% if @domain_root_account.feature_enabled?(:password_complexity) && !@domain_root_account.site_admin? %> <% js_bundle :password_complexity_configuration %>
<% end %>