X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiLogin.php;h=6ac261dd3a00ed5067d30521d5a16483cbbcec98;hb=9964ca1a390c446397dcd466916ffed356cdc3c9;hp=55edd99bb3ca955b8d3c6d0e3ac75c0b7ed1ebd1;hpb=0008ae77366cbf8bb6f07a885ba11b5ca6fcb472;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 55edd99bb3..6ac261dd3a 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -190,15 +190,6 @@ class ApiLogin extends ApiBase { $result['lguserid'] = intval( $user->getId() ); $result['lgusername'] = $user->getName(); - - // @todo: These are deprecated, and should be removed at some - // point (1.28 at the earliest, and see T121527). They were ok - // when the core cookie-based login was the only thing, but - // CentralAuth broke that a while back and - // SessionManager/AuthManager *really* break it. - $result['lgtoken'] = $user->getToken(); - $result['cookieprefix'] = $this->getConfig()->get( 'CookiePrefix' ); - $result['sessionid'] = $session->getId(); break; case 'NeedToken': @@ -206,10 +197,6 @@ class ApiLogin extends ApiBase { $this->setWarning( 'Fetching a token via action=login is deprecated. ' . 'Use action=query&meta=tokens&type=login instead.' ); $this->logFeatureUsage( 'action=login&!lgtoken' ); - - // @todo: See above about deprecation - $result['cookieprefix'] = $this->getConfig()->get( 'CookiePrefix' ); - $result['sessionid'] = $session->getId(); break; case 'WrongToken':