Explorar el Código

Deprecated: Non-static method AuthBundle\Utils\IpUtils::checkIp() should not be called statically

Luciano Andrade hace 7 años
padre
commit
1ce5ec22c5
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Security/Firewall/OAuthProxyListener.php

+ 2 - 1
Security/Firewall/OAuthProxyListener.php

@@ -79,7 +79,8 @@ class OAuthProxyListener implements ListenerInterface
             }
         } elseif ($request->getClientIp()) {
             $username = $clientIp = $request->getClientIp();
-            if (\AuthBundle\Utils\IpUtils::checkIp($clientIp) === false) {
+	    $auth = new \AuthBundle\Utils\IpUtils();
+            if ($auth->checkIp($clientIp) === false) {
                 return $this->deny($event);
             }
             // @TODO: Generar access token para el caso de IP valida