Commit 3c3bc937 authored by Andrei Gliga's avatar Andrei Gliga

if omniauth is enabled and if there are button_based_providers available show...

if omniauth is enabled and if there are button_based_providers available show the disable OAuth sources
parent 038dbb68
...@@ -109,16 +109,17 @@ ...@@ -109,16 +109,17 @@
= f.label :signin_enabled do = f.label :signin_enabled do
= f.check_box :signin_enabled = f.check_box :signin_enabled
Sign-in enabled Sign-in enabled
.form-group - if omniauth_enabled? && !button_based_providers.empty?
= f.label :disable_oauth_signin_sources, 'Disable OAuth Sign-In sources', class: 'control-label col-sm-2' .form-group
.col-sm-10 = f.label :disable_oauth_signin_sources, 'Disable OAuth Sign-In sources', class: 'control-label col-sm-2'
- data_attrs = { toggle: 'buttons' } .col-sm-10
.btn-group{ data: data_attrs } - data_attrs = { toggle: 'buttons' }
- oauth_providers_checkboxes('oauth-providers-help').each do |source| .btn-group{ data: data_attrs }
= source - oauth_providers_checkboxes('oauth-providers-help').each do |source|
%span.help-block#oauth-providers-help = source
Enabled OmniAuth must be configured for GitHub %span.help-block#oauth-providers-help
= link_to "(?)", help_page_path("integration", "github") Enabled OmniAuth must be configured for GitHub
= link_to "(?)", help_page_path("integration", "github")
.form-group .form-group
= f.label :two_factor_authentication, 'Two-factor authentication', class: 'control-label col-sm-2' = f.label :two_factor_authentication, 'Two-factor authentication', class: 'control-label col-sm-2'
.col-sm-10 .col-sm-10
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment