Customize login page when REQUIRE_SAML is enabled

This commit is contained in:
Johnson Yi 2022-04-29 15:35:40 +00:00
parent 92fe1287ea
commit 281c6df7b3

View file

@ -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