"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "includes/auth/ConfirmLinkSecondaryAuthenticationProvider.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

ConfirmLinkSecondaryAuthenticationProvider.php  (mediawiki-1.31.1):ConfirmLinkSecondaryAuthenticationProvider.php  (mediawiki-1.32.0)
skipping to change at line 122 skipping to change at line 122
$req = $maybeLink[$id]; $req = $maybeLink[$id];
$req->username = $user->getName(); $req->username = $user->getName();
if ( !$req->action ) { if ( !$req->action ) {
// Make sure the action is set, but don't override it if // Make sure the action is set, but don't override it if
// the provider filled it in. // the provider filled it in.
$req->action = AuthManager::ACTION_CHANGE ; $req->action = AuthManager::ACTION_CHANGE ;
} }
$status = $this->manager->allowsAuthenticationDat aChange( $req ); $status = $this->manager->allowsAuthenticationDat aChange( $req );
$statuses[] = [ $req, $status ]; $statuses[] = [ $req, $status ];
if ( $status->isGood() ) { if ( $status->isGood() ) {
$this->manager->changeAuthenticationData( // We're not changing credentials, just a
$req ); dding a new link
// to an already-known user.
$this->manager->changeAuthenticationData(
$req, /* $isAddition */ true );
} else { } else {
$anyFailed = true; $anyFailed = true;
} }
} }
} }
if ( !$anyFailed ) { if ( !$anyFailed ) {
return AuthenticationResponse::newPass(); return AuthenticationResponse::newPass();
} }
$combinedStatus = \Status::newGood(); $combinedStatus = \Status::newGood();
 End of changes. 1 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)