Browse Source

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

Luciano Andrade 7 năm trước cách đây
mục cha
commit
1ce5ec22c5
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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