1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-15 02:57:15 +02:00

Do not populate e_user_model as a logged in user if login failed

Fixes: #4236
This commit is contained in:
Nick Liu
2020-08-24 23:40:25 -05:00
parent daf77daa21
commit 55882c75cb
2 changed files with 13 additions and 5 deletions

View File

@@ -377,7 +377,15 @@
}
*/
/**
* @see https://github.com/e107inc/e107/issues/4236
*/
public function testUserLoginWrongCredentialsNotUser()
{
$user = e107::getUser();
$user->login("e107", "DefinitelyTheWrongPassword");
$this->assertFalse($user->isUser());
$this->assertEmpty($user->getData());
}
}