Added ip to failed login log messages
This commit is contained in:
parent
b2cf655a88
commit
d5e86f3583
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class Sessions
|
|||
'token' => $secretString
|
||||
], 201);
|
||||
} else {
|
||||
$this->logger->info('User failed to authenticate', ['username' => $body['username']]);
|
||||
$this->logger->info('User failed to authenticate', ['username' => $body['username'], 'ip' => $req->getAttribute('clientIp')]);
|
||||
return $res->withJson(['error' => 'Username or password is invalid'], 403);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue