mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-20 19:57:44 +02:00
Remove Auth env var from the About page for anonymous user
This commit is contained in:
parent
03e2decddc
commit
cc70fdacf6
@ -32,13 +32,15 @@ class SystemController extends Controller
|
|||||||
$infos['Operating system'] = PHP_OS;
|
$infos['Operating system'] = PHP_OS;
|
||||||
$infos['interface'] = PHP_SAPI;
|
$infos['interface'] = PHP_SAPI;
|
||||||
// Auth info
|
// Auth info
|
||||||
$infos['Auth guard'] = config('auth.defaults.guard');
|
if ($request->user()) {
|
||||||
if ($infos['Auth guard'] === 'reverse-proxy-guard') {
|
$infos['Auth guard'] = config('auth.defaults.guard');
|
||||||
$infos['Auth proxy header for user'] = config('auth.auth_proxy_headers.user');
|
if ($infos['Auth guard'] === 'reverse-proxy-guard') {
|
||||||
$infos['Auth proxy header for email'] = config('auth.auth_proxy_headers.email');
|
$infos['Auth proxy header for user'] = config('auth.auth_proxy_headers.user');
|
||||||
|
$infos['Auth proxy header for email'] = config('auth.auth_proxy_headers.email');
|
||||||
|
}
|
||||||
|
$infos['webauthn user verification'] = config('larapass.login_verify');
|
||||||
|
$infos['Trusted proxies'] = config('2fauth.trustedProxies') ?: 'none';
|
||||||
}
|
}
|
||||||
$infos['webauthn user verification'] = config('larapass.login_verify');
|
|
||||||
$infos['Trusted proxies'] = config('2fauth.trustedProxies') ?: 'none';
|
|
||||||
// User info
|
// User info
|
||||||
if ($request->user()) {
|
if ($request->user()) {
|
||||||
$infos['options'] = Settings::all()->toArray();
|
$infos['options'] = Settings::all()->toArray();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user