diff --git a/application/Libraries/Aauth.php b/application/Libraries/Aauth.php index 4ab0b00..8cbc77f 100644 --- a/application/Libraries/Aauth.php +++ b/application/Libraries/Aauth.php @@ -623,8 +623,6 @@ class Aauth return false; } - print_r($loginAttemptModel->find()); - // if ($this->config->ddos_protection && $this->config->recaptcha_active && $loginAttempts->get() > $this->config->recaptcha_login_attempts){ // $this->CI->load->helper('recaptchalib'); // $reCaptcha = new ReCaptcha( $this->config->recaptcha_secret); diff --git a/tests/Aauth/Libraries/Aauth/LoginTest.php b/tests/Aauth/Libraries/Aauth/LoginTest.php index a06ba96..51276bc 100644 --- a/tests/Aauth/Libraries/Aauth/LoginTest.php +++ b/tests/Aauth/Libraries/Aauth/LoginTest.php @@ -165,10 +165,8 @@ class LoginTest extends CIDatabaseTestCase $this->library->login('admina@example.com', 'password123456'); $this->library->login('admina@example.com', 'password123456'); $this->library->login('admina@example.com', 'password123456'); - $this->library->login('admina@example.com', 'password123456'); - $this->library->login('admina@example.com', 'password123456'); + $this->library->clearErrors(); $this->assertFalse($this->library->login('admina@example.com', 'password123456')); - print_r($this->library->getErrorsArray()); $this->assertEquals(lang('Aauth.loginAttemptsExceeded'), $this->library->getErrorsArray()[0]); }