- fixed some "potential" login issues, #718

- improved error logging in case of failed login attempts
- improved ESI "access token" handling
This commit is contained in:
Mark Friedrich
2018-12-22 11:43:46 +01:00
parent 668ec379e6
commit 50f630f7c2
10 changed files with 237 additions and 181 deletions

View File

@@ -86,7 +86,7 @@ class User extends Controller\Controller{
$character->save();
// write login log --------------------------------------------------------------------
self::getLogger('LOGIN')->write(
self::getLogger('CHARACTER_LOGIN')->write(
sprintf(self::LOG_LOGGED_IN,
$user->_id,
$user->name,
@@ -260,7 +260,7 @@ class User extends Controller\Controller{
$formData = $data['formData'];
try{
if($activeCharacter = $this->getCharacter(0)){
if($activeCharacter = $this->getCharacter()){
$user = $activeCharacter->getUser();
// captcha is send -> check captcha -------------------------------------------
@@ -371,7 +371,7 @@ class User extends Controller\Controller{
!empty($data['captcha']) &&
$data['captcha'] === $captcha
){
$activeCharacter = $this->getCharacter(0);
$activeCharacter = $this->getCharacter();
$user = $activeCharacter->getUser();
if($user){