BREAKING CHANGE: Require POST for patrolling revisions and salt the patrol token...
[lhc/web/wiklou.git] / includes / api / ApiPatrol.php
index 77b54ce..04afd1d 100644 (file)
@@ -59,6 +59,10 @@ class ApiPatrol extends ApiBase {
                $this->getResult()->addValue( null, $this->getModuleName(), $result );
        }
 
+       public function mustBePosted() {
+               return true;
+       }
+
        public function isWriteMode() {
                return true;
        }
@@ -90,8 +94,12 @@ class ApiPatrol extends ApiBase {
                ) );
        }
 
+       public function needsToken() {
+               return true;
+       }
+
        public function getTokenSalt() {
-               return '';
+               return 'patrol';
        }
 
        protected function getExamples() {