Optimized ReverseProxyAuthMiddleware error message

This commit is contained in:
Bernd Bestel 2021-08-22 12:55:09 +02:00
parent e88294eb40
commit 22db124624
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300

View File

@ -26,7 +26,7 @@ class ReverseProxyAuthMiddleware extends AuthMiddleware
if (count($username) !== 1) if (count($username) !== 1)
{ {
// Invalid configuration of Proxy // Invalid configuration of Proxy
throw new \Exception('ReverseProxyAuthMiddleware: Invalid username from proxy: ' . var_dump($username)); throw new \Exception('ReverseProxyAuthMiddleware: ' . GROCY_REVERSE_PROXY_AUTH_HEADER . ' header is missing or invalid');
} }
$username = $username[0]; $username = $username[0];