X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fauth%2FConfirmLinkSecondaryAuthenticationProvider.php;h=c2d730cbbd18ffd6f66c53af29554daf790a130a;hb=2bb276f07d2f291413fd41e0c62872ef39caed6e;hp=7f121cdef1d9fdc80970f74c1aafd96811af1497;hpb=5335a84c9ef221d03f264834cf136d9dd11a749a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/auth/ConfirmLinkSecondaryAuthenticationProvider.php b/includes/auth/ConfirmLinkSecondaryAuthenticationProvider.php index 7f121cdef1..c2d730cbbd 100644 --- a/includes/auth/ConfirmLinkSecondaryAuthenticationProvider.php +++ b/includes/auth/ConfirmLinkSecondaryAuthenticationProvider.php @@ -119,7 +119,9 @@ class ConfirmLinkSecondaryAuthenticationProvider extends AbstractSecondaryAuthen $status = $this->manager->allowsAuthenticationDataChange( $req ); $statuses[] = [ $req, $status ]; if ( $status->isGood() ) { - $this->manager->changeAuthenticationData( $req ); + // We're not changing credentials, just adding a new link + // to an already-known user. + $this->manager->changeAuthenticationData( $req, /* $isAddition */ true ); } else { $anyFailed = true; }