airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [05/50] airavata-php-gateway git commit: Bug fix: redirect away if only one external identity provider
Date Thu, 03 Aug 2017 17:02:56 GMT
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/master
Commit: dc6849f52be18418b85611ef758a6fa22231ae7e
Parents: 26a207a
Author: Marcus Christie <machrist@iu.edu>
Authored: Tue Jul 4 11:25:28 2017 -0400
Committer: Marcus Christie <machrist@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(


Mime
View raw message