Skip to content

Commit

Permalink
Merge "Don't link temporary account and named account in newusers log"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Jun 21, 2024
2 parents 3ee5de0 + d64c0ef commit 337140f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/auth/AuthManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -1665,12 +1665,12 @@ public function continueAccountCreation( array $reqs ) {

// Log the creation
if ( $this->config->get( MainConfigNames::NewUserLog ) ) {
$isAnon = $creator->isAnon();
$isNamed = $creator->isNamed();
$logEntry = new \ManualLogEntry(
'newusers',
$logSubtype ?: ( $isAnon ? 'create' : 'create2' )
$logSubtype ?: ( $isNamed ? 'create2' : 'create' )
);
$logEntry->setPerformer( $isAnon ? $user : $creator );
$logEntry->setPerformer( $isNamed ? $creator : $user );
$logEntry->setTarget( $user->getUserPage() );
/** @var CreationReasonAuthenticationRequest $req */
$req = AuthenticationRequest::getRequestByClass(
Expand Down

0 comments on commit 337140f

Please sign in to comment.