- Add error message when not in trusted IP list
This commit is contained in:
gmorel
2013-08-28 15:49:55 +02:00
parent 086f813e15
commit 844e142abb

View File

@@ -41,8 +41,8 @@ $request = Request::createFromGlobals();
$thelia = new Thelia("dev", true);
if ( false === in_array($request->getClientIp(), $trustedIp)) {
// Redirect 403 Forbidden
$response = new Response('Forbidden', 404);
// Redirect 401 Unauthorized
$response = new Response('Unauthorized', 401);
$thelia->terminate($request, $response);
}