if ( $request->wasPosted() ) {
// unique ID in case the same special page is open in multiple browser tabs
$uniqueId = MWCryptRand::generateHex( 6 );
- $key = $key . ':' . $uniqueId;
+ $key .= ':' . $uniqueId;
$queryParams = [ 'authUniqueId' => $uniqueId ] + $queryParams;
$authData = array_diff_key( $request->getValues(),
$uniqueId = $request->getVal( 'authUniqueId' );
if ( $uniqueId ) {
- $key = $key . ':' . $uniqueId;
+ $key .= ':' . $uniqueId;
$authData = $authManager->getAuthenticationSessionData( $key );
if ( $authData ) {
$authManager->removeAuthenticationSessionData( $key );
// Let's just submit the data to AuthManager directly instead.
LoggerFactory::getInstance( 'authentication' )
->warning( 'Validation error on return', [ 'data' => $form->mFieldData,
- 'status' => $status->getWikiText() ] );
+ 'status' => $status->getWikiText( false, false, 'en' ) ] );
$status = $this->handleFormSubmit( $form->mFieldData );
}
}