Commit 25ff3fd5 authored by Andrei Gliga's avatar Andrei Gliga

button_based_providers.any? instead of !button_based_providers.empty?

parent ab7f9c9a
...@@ -109,7 +109,7 @@ ...@@ -109,7 +109,7 @@
= 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
- if omniauth_enabled? && !button_based_providers.empty? - if omniauth_enabled? && button_based_providers.any?
.form-group .form-group
= f.label :enabled_oauth_sign_in_sources, 'Enabled OAuth Sign-In sources', class: 'control-label col-sm-2' = f.label :enabled_oauth_sign_in_sources, 'Enabled OAuth Sign-In sources', 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