X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiLogin.php;h=d64aeb7f2e25adfb1d8559009b7c9b78e9b0632c;hp=6cf1fad30cd8827f6d23b2da8e4ce43f75d1a859;hb=22806b0a4509e97b56fb52b387e17e3c80fb7eb2;hpb=f9e21f91e459c40fed6d8f2e76cccbce07e2ba1b diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 6cf1fad30c..d64aeb7f2e 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -70,14 +70,7 @@ class ApiLogin extends ApiBase { return; } - try { - $this->requirePostedParameters( [ 'password', 'token' ] ); - } catch ( ApiUsageException $ex ) { - // Make this a warning for now, upgrade to an error in 1.29. - foreach ( $ex->getStatusValue()->getErrors() as $error ) { - $this->addDeprecation( $error, 'login-params-in-query-string' ); - } - } + $this->requirePostedParameters( [ 'password', 'token' ] ); $params = $this->extractRequestParams(); @@ -209,7 +202,7 @@ class ApiLogin extends ApiBase { case 'Aborted': $result['reason'] = 'Authentication requires user interaction, ' . - 'which is not supported by action=login.'; + 'which is not supported by action=login.'; if ( $this->getConfig()->get( 'EnableBotPasswords' ) ) { $result['reason'] .= ' To be able to login with action=login, see [[Special:BotPasswords]].'; $result['reason'] .= ' To continue using main-account login, see action=clientlogin.';