A free open source IT asset/license management system
Customize login page when REQUIRE_SAML is enabled
Johnson Yi281c6df7b348
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.phpindex 409b6ed59e..b0db617300 100755--- a/resources/views/auth/login.blade.php+++ b/resources/views/auth/login.blade.php@@ -36,6 +36,7 @@<!-- Notifications -->@include('notifications')+ @if (!config('app.require_saml'))<div class="col-md-12"><!-- CSRF Token -->@@ -59,10 +60,10 @@</div></fieldset></div> <!-- end col-md-12 -->-+ @endif</div> <!-- end row -->- @if ($snipeSettings->saml_enabled)+ @if (!config('app.require_saml') && $snipeSettings->saml_enabled)<div class="row "><div class="text-right col-md-12"><a href="{{ route('saml.login') }}">{{ trans('auth/general.saml_login') }}</a>@@ -71,12 +72,16 @@@endif</div><div class="box-footer">+ @if (config('app.require_saml'))+ <a class="btn btn-lg btn-primary btn-block" href="{{ route('saml.login') }}">{{ trans('auth/general.saml_login') }}</a>+ @else<button class="btn btn-lg btn-primary btn-block">{{ trans('auth/general.login') }}</button>+ @endif</div><div class="text-right col-md-12 col-sm-12 col-xs-12" style="padding-top: 10px;">@if ($snipeSettings->custom_forgot_pass_url)<a href="{{ $snipeSettings->custom_forgot_pass_url }}" rel="noopener">{{ trans('auth/general.forgot_password') }}</a>- @else+ @elseif (!config('app.require_saml'))<a href="{{ route('password.request') }}">{{ trans('auth/general.forgot_password') }}</a>@endif