dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include IP address in "Login for $1 succeeded" log entry
[lhc/web/wiklou.git]
/
includes
/
auth
/
AuthManager.php
diff --git
a/includes/auth/AuthManager.php
b/includes/auth/AuthManager.php
index
ab7ba0f
..
c2e6d32
100644
(file)
--- a/
includes/auth/AuthManager.php
+++ b/
includes/auth/AuthManager.php
@@
-681,8
+681,9
@@
class AuthManager implements LoggerAwareInterface {
// Step 4: Authentication complete! Set the user in the session and
// clean up.
// Step 4: Authentication complete! Set the user in the session and
// clean up.
- $this->logger->info( 'Login for {user} succeeded', [
+ $this->logger->info( 'Login for {user} succeeded
from {clientip}
', [
'user' => $user->getName(),
'user' => $user->getName(),
+ 'clientip' => $this->request->getIP(),
] );
/** @var RememberMeAuthenticationRequest $req */
$req = AuthenticationRequest::getRequestByClass(
] );
/** @var RememberMeAuthenticationRequest $req */
$req = AuthenticationRequest::getRequestByClass(