Suppression variable inutile

This commit is contained in:
Michael RICOIS 2016-06-10 11:12:54 +02:00
parent 15157dc9e7
commit 58a27588ce

View File

@ -78,7 +78,6 @@ class Scores_Auth_Adapter_Ws implements Zend_Auth_Adapter_Interface
$ws = new Scores_Ws_Client('gestion', '0.3');
$ws->setHttpLogin($this->_username);
$ws->setHttpPassword($this->_password);
$adressIp = $_SERVER['REMOTE_ADDR'];
$parameters = new stdClass();
$parameters->login = $this->_username;
$parameters->ipUtilisateur = $ip;
@ -149,7 +148,7 @@ class Scores_Auth_Adapter_Ws implements Zend_Auth_Adapter_Interface
. ';' . '195.6.3.0-195.6.3.255' // ORT
. ';' . '217.144.112.0-217.144.116.63' // Coface
;
if ( $this->checkPlagesIp($ipInterdites, $adressIp) ) {
if ( $this->checkPlagesIp($ipInterdites, $ip) ) {
return new Zend_Auth_Result(Zend_Auth_Result::FAILURE_UNCATEGORIZED, $identity);
}