You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/08/09 14:50:03 UTC

[04/50] airavata-php-gateway git commit: Bug fix: redirect away if only one external identity provider

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/dreg-gateway
Commit: dc6849f52be18418b85611ef758a6fa22231ae7e
Parents: 26a207a
Author: Marcus Christie <ma...@iu.edu>
Authored: Tue Jul 4 11:25:28 2017 -0400
Committer: Marcus Christie <ma...@iu.edu>
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(