2018-04-12 16:11:22 -04:00
|
|
|
= form_for @application_setting, url: admin_application_settings_path, html: { class: 'fieldset-form' } do |f|
|
2018-03-22 13:50:46 -04:00
|
|
|
= form_errors(@application_setting)
|
2018-03-26 14:56:33 -04:00
|
|
|
|
|
|
|
%fieldset
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-13 13:49:32 -04:00
|
|
|
.offset-sm-2.col-sm-10
|
2018-04-11 14:05:57 -04:00
|
|
|
.form-check
|
2018-03-26 14:56:33 -04:00
|
|
|
= f.label :password_authentication_enabled_for_web do
|
|
|
|
= f.check_box :password_authentication_enabled_for_web
|
|
|
|
Password authentication enabled for web interface
|
2018-04-11 14:26:37 -04:00
|
|
|
.form-text.text-muted
|
2018-03-26 14:56:33 -04:00
|
|
|
When disabled, an external authentication provider must be used.
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-13 13:49:32 -04:00
|
|
|
.offset-sm-2.col-sm-10
|
2018-04-11 14:05:57 -04:00
|
|
|
.form-check
|
2018-03-26 14:56:33 -04:00
|
|
|
= f.label :password_authentication_enabled_for_git do
|
|
|
|
= f.check_box :password_authentication_enabled_for_git
|
|
|
|
Password authentication enabled for Git over HTTP(S)
|
2018-04-11 14:26:37 -04:00
|
|
|
.form-text.text-muted
|
2018-03-26 14:56:33 -04:00
|
|
|
When disabled, a Personal Access Token
|
|
|
|
- if Gitlab::Auth::LDAP::Config.enabled?
|
|
|
|
or LDAP password
|
|
|
|
must be used to authenticate.
|
|
|
|
- if omniauth_enabled? && button_based_providers.any?
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-05-29 11:18:45 -04:00
|
|
|
= f.label :enabled_oauth_sign_in_sources, 'Enabled OAuth sign-in sources', class: 'col-form-label col-sm-2'
|
2018-04-13 11:54:08 -04:00
|
|
|
= hidden_field_tag 'application_setting[enabled_oauth_sign_in_sources][]'
|
2018-03-26 14:56:33 -04:00
|
|
|
.col-sm-10
|
|
|
|
.btn-group{ data: { toggle: 'buttons' } }
|
|
|
|
- oauth_providers_checkboxes.each do |source|
|
|
|
|
= source
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :two_factor_authentication, 'Two-factor authentication', class: 'col-form-label col-sm-2'
|
2018-03-26 14:56:33 -04:00
|
|
|
.col-sm-10
|
2018-04-11 14:05:57 -04:00
|
|
|
.form-check
|
2018-03-26 14:56:33 -04:00
|
|
|
= f.label :require_two_factor_authentication do
|
|
|
|
= f.check_box :require_two_factor_authentication
|
|
|
|
Require all users to setup Two-factor authentication
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :two_factor_authentication, 'Two-factor grace period (hours)', class: 'col-form-label col-sm-2'
|
2018-03-26 14:56:33 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.number_field :two_factor_grace_period, min: 0, class: 'form-control', placeholder: '0'
|
2018-04-11 14:26:37 -04:00
|
|
|
.form-text.text-muted Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :home_page_url, 'Home page URL', class: 'col-form-label col-sm-2'
|
2018-03-26 14:56:33 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :home_page_url, class: 'form-control', placeholder: 'http://company.example.com', :'aria-describedby' => 'home_help_block'
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted#home_help_block We will redirect non-logged in users to this page
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :after_sign_out_path, class: 'col-form-label col-sm-2'
|
2018-03-26 14:56:33 -04:00
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :after_sign_out_path, class: 'form-control', placeholder: 'http://company.example.com', :'aria-describedby' => 'after_sign_out_path_help_block'
|
2018-04-11 14:26:37 -04:00
|
|
|
%span.form-text.text-muted#after_sign_out_path_help_block We will redirect users to this page after they sign out
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row
|
2018-04-11 15:36:17 -04:00
|
|
|
= f.label :sign_in_text, class: 'col-form-label col-sm-2'
|
2018-03-22 13:50:46 -04:00
|
|
|
.col-sm-10
|
2018-03-26 14:56:33 -04:00
|
|
|
= f.text_area :sign_in_text, class: 'form-control', rows: 4
|
2018-04-11 14:26:37 -04:00
|
|
|
.form-text.text-muted Markdown enabled
|
2018-03-26 14:56:33 -04:00
|
|
|
|
2018-03-26 13:51:08 -04:00
|
|
|
= f.submit 'Save changes', class: "btn btn-success"
|