debian-mirror-gitlab/app/views/admin/application_settings/_signin.html.haml

69 lines
4.2 KiB
Text
Raw Normal View History

2021-04-29 21:17:54 +05:30
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-signin-settings'), html: { class: 'fieldset-form', id: 'signin-settings' } do |f|
2018-05-09 12:01:36 +05:30
= form_errors(@application_setting)
%fieldset
.form-group
2018-11-08 19:23:39 +05:30
.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-06-08 01:23:25 +05:30
= _('Password authentication enabled for web interface')
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-06-08 01:23:25 +05:30
= _('When disabled, an external authentication provider must be used.')
2018-05-09 12:01:36 +05:30
.form-group
2018-11-08 19:23:39 +05:30
.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-06-08 01:23:25 +05:30
= _('Password authentication enabled for Git over HTTP(S)')
2018-11-08 19:23:39 +05:30
.form-text.text-muted
When disabled, a Personal Access Token
2020-04-08 14:13:33 +05:30
- if Gitlab::Auth::Ldap::Config.enabled?
2018-11-08 19:23:39 +05:30
or LDAP password
must be used to authenticate.
2018-05-09 12:01:36 +05:30
- if omniauth_enabled? && button_based_providers.any?
2021-04-17 20:07:23 +05:30
%fieldset.form-group
%legend.gl-font-base.gl-mb-3.gl-border-none.gl-font-weight-bold= _('Enabled OAuth sign-in sources')
2018-05-09 12:01:36 +05:30
= hidden_field_tag 'application_setting[enabled_oauth_sign_in_sources][]'
2021-04-17 20:07:23 +05:30
- oauth_providers_checkboxes.each do |source|
= source
2018-05-09 12:01:36 +05:30
.form-group
2021-06-08 01:23:25 +05:30
= f.label :two_factor_authentication, _('Two-factor authentication'), class: 'label-bold'
2018-11-08 19:23:39 +05:30
.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-06-08 01:23:25 +05:30
= _('Require all users to set up two-factor authentication')
2021-04-29 21:17:54 +05:30
.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
= _('Require additional authentication for administrative tasks')
.form-text.text-muted
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/sign_in_restrictions', anchor: 'admin-mode')
2020-07-28 23:09:34 +05:30
.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
= _('Notify users by email when sign-in location is not recognized')
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'),
2020-07-28 23:09:34 +05:30
'https://docs.gitlab.com/ee/user/profile/unknown_sign_in_notification.html',
target: '_blank'
2018-05-09 12:01:36 +05:30
.form-group
2021-06-08 01:23:25 +05:30
= f.label :two_factor_authentication, _('Two-factor grace period (hours)'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :two_factor_grace_period, min: 0, class: 'form-control gl-form-input', placeholder: '0'
2021-06-08 01:23:25 +05:30
.form-text.text-muted= _('Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication')
2018-05-09 12:01:36 +05:30
.form-group
2021-06-08 01:23:25 +05:30
= f.label :home_page_url, _('Home page URL'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :home_page_url, class: 'form-control gl-form-input', placeholder: 'http://company.example.com', :'aria-describedby' => 'home_help_block'
2021-06-08 01:23:25 +05:30
%span.form-text.text-muted#home_help_block= _("We will redirect non-logged in users to this page")
2018-05-09 12:01:36 +05:30
.form-group
2021-01-29 00:20:46 +05:30
= f.label :after_sign_out_path, _('After sign-out path'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= 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-06-08 01:23:25 +05:30
%span.form-text.text-muted#after_sign_out_path_help_block= _("We will redirect users to this page after they sign out")
2018-05-09 12:01:36 +05:30
.form-group
2021-01-29 00:20:46 +05:30
= f.label :sign_in_text, _('Sign-in text'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_area :sign_in_text, class: 'form-control gl-form-input', rows: 4
2018-11-08 19:23:39 +05:30
.form-text.text-muted Markdown enabled
2021-06-08 01:23:25 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"