mirror of
https://github.com/grocy/grocy.git
synced 2026-03-27 23:29:25 +01: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…
Reference in New Issue
Block a user