airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [03/50] [abbrv] airavata-php-gateway git commit: if logged in redirect to home screen
Date Thu, 07 Jul 2016 19:27:07 GMT
if logged in redirect to home screen


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/7afb1ddb
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/7afb1ddb
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/7afb1ddb

Branch: refs/heads/master
Commit: 7afb1ddbd330195d14a34a80733844276df1fa63
Parents: 80ed6e9
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Mon May 2 14:58:43 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Mon May 2 14:58:43 2016 -0400

----------------------------------------------------------------------
 app/controllers/AccountController.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/7afb1ddb/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index ec429e3..599ab7b 100644
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -89,7 +89,10 @@ class AccountController extends BaseController
 //        }else{
 //            return View::make('account/login');
 //        }
-        return View::make('account/login');
+        if(CommonUtilities::verify_login()){
+            return Redirect::to("home");
+        }else
+            return View::make('account/login');
     }
 
     public function loginSubmit()


Mime
View raw message