mirror of
https://github.com/loewexy/pdnsmanager.git
synced 2025-01-15 18:52:20 +01:00
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
|
'token' => $secretString
|
||||||
], 201);
|
], 201);
|
||||||
} else {
|
} 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);
|
return $res->withJson(['error' => 'Username or password is invalid'], 403);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue