Browse Source

updated Libraries/Aauth & Aauth/LoginTest

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

1
application/Libraries/Aauth.php

@ -794,6 +794,7 @@ class Aauth
{ {
helper('cookie'); helper('cookie');
set_cookie('remember', '', -3600); set_cookie('remember', '', -3600);
$this->session->remove('user');
@$this->session->destroy(); @$this->session->destroy();
} }

1
tests/Aauth/Libraries/Aauth/LoginTest.php

@ -168,6 +168,7 @@ 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->assertFalse($this->library->login('admina@example.com', 'password123456')); $this->assertFalse($this->library->login('admina@example.com', 'password123456'));
print_r($this->library->getErrorsArray());
$this->assertEquals(lang('Aauth.loginAttemptsExceeded'), $this->library->getErrorsArray()[0]); $this->assertEquals(lang('Aauth.loginAttemptsExceeded'), $this->library->getErrorsArray()[0]);
} }

Loading…
Cancel
Save