From f967e2d2bba29bd492973b29d5dbaf42614d68d0 Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Sun, 18 Nov 2007 05:46:44 +0000 Subject: [PATCH] API: Provide details message on first failed log-in too (probably where it's needed the most). --- includes/api/ApiLogin.php | 1 + 1 file changed, 1 insertion(+) 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 -- 2.20.1