X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FAuthManager.php;h=aae5a83a228c351b2d810ae319823545e84de377;hb=448386e304c1f67914a4cf639b457d95b06d2a98;hp=ab7ba0fb8c9e1be6e18b664f1cdffb4ad1245391;hpb=a4120368bb7797df25004613feed9406eac1c9d0;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/AuthManager.php b/includes/auth/AuthManager.php index ab7ba0fb8c..aae5a83a22 100644 --- 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. - $this->logger->info( 'Login for {user} succeeded', [ + $this->logger->info( 'Login for {user} succeeded from {clientip}', [ 'user' => $user->getName(), + 'clientip' => $this->request->getIP(), ] ); /** @var RememberMeAuthenticationRequest $req */ $req = AuthenticationRequest::getRequestByClass( @@ -1223,7 +1224,7 @@ class AuthManager implements LoggerAwareInterface { return $ret; } } else { - if ( $user->getId() == 0 ) { + if ( $user->getId() === 0 ) { $this->logger->debug( __METHOD__ . ': User does not exist locally when it should', [ 'user' => $user->getName(), 'creator' => $creator->getName(),