X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fapi%2FApiAuthManagerHelper.php;h=6fafebff3b499ff8a3669ae41ea7d2b17fe77205;hb=444f5838afc627eccb102d3d229fe928998a3d9f;hp=8e57f93a08d17fa38b0bb8883513a91e1e91f69c;hpb=87c069c801589a721b4efb9b024ce71e977fe3fa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiAuthManagerHelper.php b/includes/api/ApiAuthManagerHelper.php index 8e57f93a08..6fafebff3b 100644 --- a/includes/api/ApiAuthManagerHelper.php +++ b/includes/api/ApiAuthManagerHelper.php @@ -173,13 +173,7 @@ class ApiAuthManagerHelper { $this->module->getMain()->markParamsUsed( array_keys( $data ) ); if ( $sensitive ) { - try { - $this->module->requirePostedParameters( array_keys( $sensitive ), 'noprefix' ); - } catch ( UsageException $ex ) { - // Make this a warning for now, upgrade to an error in 1.29. - $this->module->setWarning( $ex->getMessage() ); - $this->module->logFeatureUsage( $this->module->getModuleName() . '-params-in-query-string' ); - } + $this->module->requirePostedParameters( array_keys( $sensitive ), 'noprefix' ); } return AuthenticationRequest::loadRequestsFromSubmission( $reqs, $data ); @@ -191,8 +185,6 @@ class ApiAuthManagerHelper { * @return array */ public function formatAuthenticationResponse( AuthenticationResponse $res ) { - $params = $this->module->extractRequestParams(); - $ret = [ 'status' => $res->status, ];