Explorar o código

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

Luciano Andrade %!s(int64=7) %!d(string=hai) anos
pai
achega
1ce5ec22c5
Modificáronse 1 ficheiros con 2 adicións e 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