#5: Don't show the "alternatively..." message when no social media providers are configured

This commit is contained in:
Andy Heathershaw 2018-09-07 09:03:21 +01:00
parent 37375eb7e6
commit e4863af668
2 changed files with 2 additions and 4 deletions

View File

@ -2,9 +2,8 @@
@if (UserConfig::isSocialMediaLoginEnabled()) @if (UserConfig::isSocialMediaLoginEnabled())
<p>@lang('auth.social_login')</p> <p>@lang('auth.social_login')</p>
@include(Theme::viewName('partials.social_login_providers')) @include(Theme::viewName('partials.social_login_providers'))
@endif
<p class="mt-5 mb-4">@lang('auth.email_password_login')</p> <p class="mt-5 mb-4">@lang('auth.email_password_login')</p>
@endif
@else @else
<p>@lang('auth.email_password_login_sso')</p> <p>@lang('auth.email_password_login_sso')</p>
<p class="mb-5">@lang('auth.email_password_login_sso_2')</p> <p class="mb-5">@lang('auth.email_password_login_sso_2')</p>

View File

@ -2,9 +2,8 @@
@if (UserConfig::isSocialMediaLoginEnabled()) @if (UserConfig::isSocialMediaLoginEnabled())
<p>@lang('auth.social_register')</p> <p>@lang('auth.social_register')</p>
@include(Theme::viewName('partials.social_login_providers')) @include(Theme::viewName('partials.social_login_providers'))
@endif
<p class="mt-5 mb-4">@lang('auth.email_password_register')</p> <p class="mt-5 mb-4">@lang('auth.email_password_register')</p>
@endif
@else @else
<p class="mb-4">@lang('auth.email_password_register_sso')</p> <p class="mb-4">@lang('auth.email_password_register_sso')</p>
@endif @endif