mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Optimized ReverseProxyAuthMiddleware error message
This commit is contained in:
parent
e88294eb40
commit
22db124624
@ -26,7 +26,7 @@ class ReverseProxyAuthMiddleware extends AuthMiddleware
|
||||
if (count($username) !== 1)
|
||||
{
|
||||
// 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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user