From: Daniel Cannon Date: Sun, 18 Nov 2007 05:46:44 +0000 (+0000) Subject: API: Provide details message on first failed log-in too (probably where it's needed... X-Git-Tag: 1.31.0-rc.0~50830 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=f967e2d2bba29bd492973b29d5dbaf42614d68d0;p=lhc%2Fweb%2Fwiklou.git API: Provide details message on first failed log-in too (probably where it's needed the most). --- diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 72b1dcdf75..7d781240bd 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -131,6 +131,7 @@ class ApiLogin extends ApiBase { if ($result['result'] != 'Success') { $result['wait'] = $this->cacheBadLogin(); + $result['details'] = "Please wait " . self::THROTTLE_TIME . " seconds before next log-in attempt"; } // if we were allowed to try to login, memcache is fine