Repository: airavata-php-gateway Updated Branches: refs/heads/develop 26a207a08 -> dc6849f52
Bug fix: redirect away if only one external identity provider Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/dc6849f5 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/dc6849f5 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/dc6849f5 Branch: refs/heads/develop Commit: dc6849f52be18418b85611ef758a6fa22231ae7e Parents: 26a207a Author: Marcus Christie <[email protected]> Authored: Tue Jul 4 11:25:28 2017 -0400 Committer: Marcus Christie <[email protected]> Committed: Tue Jul 4 11:25:28 2017 -0400 ---------------------------------------------------------------------- app/controllers/AccountController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/dc6849f5/app/controllers/AccountController.php ---------------------------------------------------------------------- diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index a47407d..3a77746 100644 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -82,7 +82,7 @@ class AccountController extends BaseController // If no username/password option and only one external identity // provider, just redirect immediately - if ($auth_password_option == null && count($auth_code_options)) { + if ($auth_password_option == null && count($auth_code_options) == 1) { return Redirect::away($auth_code_options[0]["auth_url"]); } else { return View::make('account/login', array( @@ -101,7 +101,7 @@ class AccountController extends BaseController // If no username/password option and only one external identity // provider, just redirect immediately - if ($auth_password_option == null && count($auth_code_options)) { + if ($auth_password_option == null && count($auth_code_options) == 1) { return Redirect::away($auth_code_options[0]["auth_url"]); } else { return View::make('account/login-desktop', array(
