From e10e4d005f18c908788afc5fc1e0ca5dce6a4eb9 Mon Sep 17 00:00:00 2001 From: Krenair Date: Wed, 20 Mar 2013 19:04:05 +0000 Subject: [PATCH] (bug 45019) Require token for CheckUser API module --- api/ApiQueryCheckUser.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/api/ApiQueryCheckUser.php b/api/ApiQueryCheckUser.php index 276d9f5..99ea444 100644 --- a/api/ApiQueryCheckUser.php +++ b/api/ApiQueryCheckUser.php @@ -234,6 +234,10 @@ public function getAllowedParams() { ApiBase::PARAM_DFLT => '-2 weeks' ), 'xff' => null, + 'token' => array( + ApiBase::PARAM_TYPE => 'string', + ApiBase::PARAM_REQUIRED => true, + ), ); } @@ -283,4 +287,12 @@ public function getHelpUrls() { public function getVersion() { return __CLASS__ . ': $Id$'; } + + public function getTokenSalt() { + return ''; + } + + public function needsToken() { + return true; + } } -- 1.8.1.2