Customize login page when REQUIRE_SAML is enabled
This commit is contained in:
parent
92fe1287ea
commit
281c6df7b3
1 changed files with 8 additions and 3 deletions
|
@ -36,6 +36,7 @@
|
||||||
<!-- Notifications -->
|
<!-- Notifications -->
|
||||||
@include('notifications')
|
@include('notifications')
|
||||||
|
|
||||||
|
@if (!config('app.require_saml'))
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<!-- CSRF Token -->
|
<!-- CSRF Token -->
|
||||||
|
|
||||||
|
@ -59,10 +60,10 @@
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div> <!-- end col-md-12 -->
|
</div> <!-- end col-md-12 -->
|
||||||
|
@endif
|
||||||
</div> <!-- end row -->
|
</div> <!-- end row -->
|
||||||
|
|
||||||
@if ($snipeSettings->saml_enabled)
|
@if (!config('app.require_saml') && $snipeSettings->saml_enabled)
|
||||||
<div class="row ">
|
<div class="row ">
|
||||||
<div class="text-right col-md-12">
|
<div class="text-right col-md-12">
|
||||||
<a href="{{ route('saml.login') }}">{{ trans('auth/general.saml_login') }}</a>
|
<a href="{{ route('saml.login') }}">{{ trans('auth/general.saml_login') }}</a>
|
||||||
|
@ -71,12 +72,16 @@
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="box-footer">
|
<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>
|
<button class="btn btn-lg btn-primary btn-block">{{ trans('auth/general.login') }}</button>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="text-right col-md-12 col-sm-12 col-xs-12" style="padding-top: 10px;">
|
<div class="text-right col-md-12 col-sm-12 col-xs-12" style="padding-top: 10px;">
|
||||||
@if ($snipeSettings->custom_forgot_pass_url)
|
@if ($snipeSettings->custom_forgot_pass_url)
|
||||||
<a href="{{ $snipeSettings->custom_forgot_pass_url }}" rel="noopener">{{ trans('auth/general.forgot_password') }}</a>
|
<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>
|
<a href="{{ route('password.request') }}">{{ trans('auth/general.forgot_password') }}</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue