Browse Source

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

Luciano Andrade 7 years ago
parent
commit
1ce5ec22c5
1 changed files with 2 additions and 1 deletions
  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