mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Hides the “Disable Other Login Mechanisms” option via env
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f2acb98afa
commit
bbad84c6cc
|
@ -184,6 +184,7 @@ REQUIRE_SAML=false
|
||||||
API_THROTTLE_PER_MINUTE=120
|
API_THROTTLE_PER_MINUTE=120
|
||||||
CSV_ESCAPE_FORMULAS=true
|
CSV_ESCAPE_FORMULAS=true
|
||||||
LIVEWIRE_URL_PREFIX=null
|
LIVEWIRE_URL_PREFIX=null
|
||||||
|
SHOW_REMOTE_LOGIN_ONLY_OPTION=false
|
||||||
|
|
||||||
# --------------------------------------------
|
# --------------------------------------------
|
||||||
# OPTIONAL: HASHING
|
# OPTIONAL: HASHING
|
||||||
|
|
|
@ -428,4 +428,18 @@ return [
|
||||||
|
|
||||||
'escape_formulas' => env('CSV_ESCAPE_FORMULAS', true),
|
'escape_formulas' => env('CSV_ESCAPE_FORMULAS', true),
|
||||||
|
|
||||||
|
/*
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
| Show Remote Login Options
|
||||||
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
| This determins whether or not to display the remote login options under Security.
|
||||||
|
| Most people won't need this, and if you don't have remote login configured
|
||||||
|
| and working correctly, you can lock yourself out of the system by enabling that
|
||||||
|
| option in the Admin Settings > Security section.
|
||||||
|
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
'show_remote_login_only_option' => env('SHOW_REMOTE_LOGIN_ONLY_OPTION', false),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
@ -150,6 +150,9 @@
|
||||||
<p class="help-block">
|
<p class="help-block">
|
||||||
{{ trans('admin/settings/general.login_remote_user_custom_logout_url_help') }}
|
{{ trans('admin/settings/general.login_remote_user_custom_logout_url_help') }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@if (($setting->login_remote_user_enabled == '1') && (config('app.show_remote_login_only_option') != false))
|
||||||
|
|
||||||
<!-- Disable other logins mechanism -->
|
<!-- Disable other logins mechanism -->
|
||||||
<label class="form-control">
|
<label class="form-control">
|
||||||
|
|
||||||
|
@ -160,6 +163,8 @@
|
||||||
<p class="help-block">
|
<p class="help-block">
|
||||||
{{ trans('admin/settings/general.login_common_disabled_help') }}
|
{{ trans('admin/settings/general.login_common_disabled_help') }}
|
||||||
</p>
|
</p>
|
||||||
|
@endif
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue