Browse Source

updatd Libraries/Aauth & Aauth/LoginTest

v3-dev
REJack 6 years ago
parent
commit
6997d7bc2b
No known key found for this signature in database
GPG Key ID: 4A44B48700429F46
  1. 2
      application/Libraries/Aauth.php
  2. 4
      tests/Aauth/Libraries/Aauth/LoginTest.php

2
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);

4
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]);
}

Loading…
Cancel
Save