X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiLogin.php;h=6ac261dd3a00ed5067d30521d5a16483cbbcec98;hp=55edd99bb3ca955b8d3c6d0e3ac75c0b7ed1ebd1;hb=59e7337ea612d03d08b67e6ada707e3d7ced738d;hpb=9de4779e206628d8c7c9ae76785bfe825b5267d5 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':