...
 
Commits (1)
......@@ -296,7 +296,7 @@ class Core extends Password {
throw new Exception("You will not be able to execute writing actions soon. Reason: " . $result);
} else if ($result === 'assertuserfailed' || $result === 'assertbotfailed') {
if($this->failedLoginCounter > 5) {
throw new Exception("MaxLoginTrysExceeded"); // ToDo: Find a way to reset this on succesful actions without putting that into every function
throw new Exception("MaxLoginTrysExceeded"); // ToDo: Find a way to reset this on successful actions without putting that into every function
}
$this->failedLoginCounter++;
$this->login();
......@@ -745,7 +745,7 @@ class Core extends Password {
* @param $revid - the revid of the revision to approve/unapprove
* @param $comment [optional: ""] - the comment to add for the log
* @param $unapprove [optional: 0] - if 1: mark the rev as unreviewed instead of reviewed
* @return string - success if succesful, otherwise the API error-code
* @return string - success if successful, otherwise the API error-code
*/
public function review($revid, $comment = "", $unapprove = 0) {
$token = $this->requireToken();
......