API: Provide details message on first failed log-in too (probably where it's needed...
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Sun, 18 Nov 2007 05:46:44 +0000 (05:46 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Sun, 18 Nov 2007 05:46:44 +0000 (05:46 +0000)
includes/api/ApiLogin.php

index 72b1dcd..7d78124 100644 (file)
@@ -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