From: Bryan Tong Minh Date: Wed, 20 Aug 2008 19:56:18 +0000 (+0000) Subject: Provide some info on which case value was not handled in ApiLogin X-Git-Tag: 1.31.0-rc.0~45758 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=f830c86e06ccc3ba28872314f546a8dbb7665411;p=lhc%2Fweb%2Fwiklou.git Provide some info on which case value was not handled in ApiLogin --- diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 23b5d29c6a..2e90b56ff6 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -97,7 +97,7 @@ class ApiLogin extends ApiBase { } $loginForm = new LoginForm($params); - switch ($loginForm->authenticateUserData()) { + switch ($authRes = $loginForm->authenticateUserData()) { case LoginForm :: SUCCESS : global $wgUser, $wgCookiePrefix; @@ -143,7 +143,7 @@ class ApiLogin extends ApiBase { $result['result'] = 'Throttled'; break; default : - ApiBase :: dieDebug(__METHOD__, 'Unhandled case value'); + ApiBase :: dieDebug(__METHOD__, "Unhandled case value: {$authRes}"); } if ($result['result'] != 'Success' && !isset( $result['details'] ) ) {