2022-05-04 09:09:02 +00:00
|
|
|
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-signin-settings'), html: { class: 'fieldset-form', id: 'signin-settings' } do |f|
|
2018-03-22 17:50:46 +00:00
|
|
|
= form_errors(@application_setting)
|
2018-03-26 18:56:33 +00:00
|
|
|
|
|
|
|
%fieldset
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :password_authentication_enabled_for_web, class: 'form-check-input'
|
|
|
|
= f.label :password_authentication_enabled_for_web, class: 'form-check-label' do
|
2021-08-10 09:10:08 +00:00
|
|
|
= _('Allow password authentication for the web interface')
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-text.text-muted
|
2022-03-02 03:13:05 +00:00
|
|
|
= _('Clear this checkbox to use an external authentication provider instead.')
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :password_authentication_enabled_for_git, class: 'form-check-input'
|
|
|
|
= f.label :password_authentication_enabled_for_git, class: 'form-check-label' do
|
2021-08-10 09:10:08 +00:00
|
|
|
= _('Allow password authentication for Git over HTTP(S)')
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-text.text-muted
|
2020-03-12 15:09:39 +00:00
|
|
|
- if Gitlab::Auth::Ldap::Config.enabled?
|
2022-03-02 03:13:05 +00:00
|
|
|
= _('Clear this checkbox to use a personal access token or LDAP password instead.')
|
|
|
|
- else
|
|
|
|
= _('Clear this checkbox to use a personal access token instead.')
|
2018-03-26 18:56:33 +00:00
|
|
|
- if omniauth_enabled? && button_based_providers.any?
|
2021-03-12 21:09:12 +00:00
|
|
|
%fieldset.form-group
|
2021-08-10 09:10:08 +00:00
|
|
|
%legend.gl-font-base.gl-mb-3.gl-border-none.gl-font-weight-bold= _('Enabled OAuth authentication sources')
|
2018-04-13 15:54:08 +00:00
|
|
|
= hidden_field_tag 'application_setting[enabled_oauth_sign_in_sources][]'
|
2022-05-04 09:09:02 +00:00
|
|
|
- oauth_providers_checkboxes(f).each do |source|
|
2021-03-12 21:09:12 +00:00
|
|
|
= source
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2021-04-26 12:09:44 +00:00
|
|
|
= f.label :two_factor_authentication, _('Two-factor authentication'), class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-check
|
|
|
|
= f.check_box :require_two_factor_authentication, class: 'form-check-input'
|
|
|
|
= f.label :require_two_factor_authentication, class: 'form-check-label' do
|
2021-08-10 09:10:08 +00:00
|
|
|
= _('Enforce two-factor authentication')
|
|
|
|
%p.form-text.text-muted
|
|
|
|
= _('Enforce two-factor authentication for all user sign-ins.')
|
|
|
|
= link_to _('Learn more.'), help_page_path('security/two_factor_authentication.md'), target: '_blank', rel: 'noopener noreferrer'
|
|
|
|
.form-group
|
|
|
|
= f.label :two_factor_authentication, _('Two-factor grace period'), class: 'label-bold'
|
|
|
|
= f.number_field :two_factor_grace_period, min: 0, class: 'form-control gl-form-input', placeholder: '0'
|
|
|
|
.form-text.text-muted
|
|
|
|
= _('Maximum time that users are allowed to skip the setup of two-factor authentication (in hours). Set to 0 (zero) to enforce at next sign in.')
|
2021-03-18 00:08:58 +00:00
|
|
|
.form-group
|
|
|
|
= f.label :admin_mode, _('Admin Mode'), class: 'label-bold'
|
|
|
|
= sprite_icon('lock', css_class: 'gl-icon')
|
|
|
|
.form-check
|
|
|
|
= f.check_box :admin_mode, class: 'form-check-input'
|
|
|
|
= f.label :admin_mode, class: 'form-check-label' do
|
2021-08-10 09:10:08 +00:00
|
|
|
= _('Enable admin mode')
|
|
|
|
%p.form-text.text-muted
|
|
|
|
= _('Require additional authentication for administrative tasks.')
|
|
|
|
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/sign_in_restrictions', anchor: 'admin-mode'), target: '_blank', rel: 'noopener noreferrer'
|
2020-06-22 15:09:27 +00:00
|
|
|
.form-group
|
|
|
|
= f.label :unknown_sign_in, _('Email notification for unknown sign-ins'), class: 'label-bold'
|
|
|
|
.form-check
|
|
|
|
= f.check_box :notify_on_unknown_sign_in, class: 'form-check-input'
|
|
|
|
= f.label :notify_on_unknown_sign_in, class: 'form-check-label' do
|
2021-08-10 09:10:08 +00:00
|
|
|
= _('Enable email notification')
|
|
|
|
%p.form-text.text-muted
|
|
|
|
= _('Notify users by email when sign-in location is not recognized.')
|
|
|
|
= link_to _('Learn more.'), help_page_path('user/profile/unknown_sign_in_notification.md'), target: '_blank', rel: 'noopener noreferrer'
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2021-04-26 12:09:44 +00:00
|
|
|
= f.label :home_page_url, _('Home page URL'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :home_page_url, class: 'form-control gl-form-input', placeholder: 'http://company.example.com', :'aria-describedby' => 'home_help_block'
|
2021-08-10 09:10:08 +00:00
|
|
|
%span.form-text.text-muted#home_help_block= _("Direct non-authenticated users to this page.")
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2021-08-10 09:10:08 +00:00
|
|
|
= f.label :after_sign_out_path, _('Sign-out page URL'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_field :after_sign_out_path, class: 'form-control gl-form-input', placeholder: 'http://company.example.com', :'aria-describedby' => 'after_sign_out_path_help_block'
|
2021-08-10 09:10:08 +00:00
|
|
|
%span.form-text.text-muted#home_help_block= _("Direct users to this page after they sign out.")
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2020-11-03 18:09:22 +00:00
|
|
|
= f.label :sign_in_text, _('Sign-in text'), class: 'label-bold'
|
2021-01-31 18:09:51 +00:00
|
|
|
= f.text_area :sign_in_text, class: 'form-control gl-form-input', rows: 4
|
2021-08-10 09:10:08 +00:00
|
|
|
%span.form-text.text-muted#home_help_block= _("Add text to the sign-in page. Markdown enabled.")
|
2021-04-26 12:09:44 +00:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"
|