Ver Fonte

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

Luciano Andrade há 7 anos atrás
pai
commit
1ce5ec22c5
1 ficheiros alterados com 2 adições e 1 exclusões
  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