2019-09-16 21:06:30 +00:00
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-signin-settings'), html: { class: 'fieldset-form' } 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
|
|
|
|
Password authentication enabled for web interface
|
|
|
|
.form-text.text-muted
|
|
|
|
When disabled, an external authentication provider must be used.
|
|
|
|
.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
|
|
|
|
Password authentication enabled for Git over HTTP(S)
|
|
|
|
.form-text.text-muted
|
|
|
|
When disabled, a Personal Access Token
|
2020-03-12 15:09:39 +00:00
|
|
|
- if Gitlab::Auth::Ldap::Config.enabled?
|
2018-06-13 07:40:55 +00:00
|
|
|
or LDAP password
|
|
|
|
must be used to authenticate.
|
2018-03-26 18:56:33 +00:00
|
|
|
- if omniauth_enabled? && button_based_providers.any?
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2018-07-19 22:11:31 +00:00
|
|
|
= f.label :enabled_oauth_sign_in_sources, 'Enabled OAuth sign-in sources', class: 'label-bold'
|
2018-04-13 15:54:08 +00:00
|
|
|
= hidden_field_tag 'application_setting[enabled_oauth_sign_in_sources][]'
|
2018-06-13 07:40:55 +00:00
|
|
|
.btn-group{ data: { toggle: 'buttons' } }
|
|
|
|
- oauth_providers_checkboxes.each do |source|
|
|
|
|
= source
|
|
|
|
.form-group
|
2018-07-19 22:11:31 +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
|
2018-09-17 09:17:33 +00:00
|
|
|
Require all users to set up Two-factor authentication
|
2018-06-13 07:40:55 +00:00
|
|
|
.form-group
|
2018-07-19 22:11:31 +00:00
|
|
|
= f.label :two_factor_authentication, 'Two-factor grace period (hours)', class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
= f.number_field :two_factor_grace_period, min: 0, class: 'form-control', placeholder: '0'
|
|
|
|
.form-text.text-muted Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication
|
|
|
|
.form-group
|
2018-07-19 22:11:31 +00:00
|
|
|
= f.label :home_page_url, 'Home page URL', class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
= f.text_field :home_page_url, class: 'form-control', placeholder: 'http://company.example.com', :'aria-describedby' => 'home_help_block'
|
|
|
|
%span.form-text.text-muted#home_help_block We will redirect non-logged in users to this page
|
|
|
|
.form-group
|
2018-07-19 22:11:31 +00:00
|
|
|
= f.label :after_sign_out_path, class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
= f.text_field :after_sign_out_path, class: 'form-control', placeholder: 'http://company.example.com', :'aria-describedby' => 'after_sign_out_path_help_block'
|
|
|
|
%span.form-text.text-muted#after_sign_out_path_help_block We will redirect users to this page after they sign out
|
|
|
|
.form-group
|
2018-07-19 22:11:31 +00:00
|
|
|
= f.label :sign_in_text, class: 'label-bold'
|
2018-06-13 07:40:55 +00:00
|
|
|
= f.text_area :sign_in_text, class: 'form-control', rows: 4
|
|
|
|
.form-text.text-muted Markdown enabled
|
2018-03-26 18:56:33 +00:00
|
|
|
|
2018-03-26 17:51:08 +00:00
|
|
|
= f.submit 'Save changes', class: "btn btn-success"
|