} else {
$out->addWikiMsg( 'accountcreatedtext', $user->getName() );
}
- $out->addReturnTo( $this->getPageTitle() );
+
+ $rt = Title::newFromText( $this->mReturnTo );
+ $out->addReturnTo(
+ ( $rt && !$rt->isExternal() ) ? $rt : $this->getPageTitle(),
+ wfCgiToArray( $this->mReturnToQuery )
+ );
return;
}
}
}
protected function logAuthResult( $success, $status = null ) {
- LoggerFactory::getInstance( 'authmanager' )->info( 'Account creation attempt', [
+ LoggerFactory::getInstance( 'authevents' )->info( 'Account creation attempt', [
'event' => 'accountcreation',
'successful' => $success,
'status' => $status,