From 0e672e2435581844b54bb1f91cdb4bb740a38d97 Mon Sep 17 00:00:00 2001 From: epriestley Date: Thu, 13 Sep 2012 16:47:00 -0700 Subject: [PATCH] Fix GitHub login failure for user with username "0". --- .../auth/controller/PhabricatorLoginValidateController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/auth/controller/PhabricatorLoginValidateController.php b/src/applications/auth/controller/PhabricatorLoginValidateController.php index e8b3de5045..492b47cf5f 100644 --- a/src/applications/auth/controller/PhabricatorLoginValidateController.php +++ b/src/applications/auth/controller/PhabricatorLoginValidateController.php @@ -28,7 +28,7 @@ final class PhabricatorLoginValidateController $failures = array(); - if (!$request->getStr('phusr')) { + if (!strlen($request->getStr('phusr'))) { throw new Exception( "Login validation is missing expected parameters!"); }