X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fauth%2FConfirmLinkSecondaryAuthenticationProvider.php;h=c2d730cbbd18ffd6f66c53af29554daf790a130a;hb=3d74af3e963bdcbbdbd58e65a5efdd7819db5236;hp=7f121cdef1d9fdc80970f74c1aafd96811af1497;hpb=9dfda465706d70a1ddd9beeec62c96b4d06c36b3;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; }