Repository: airavata-php-gateway Updated Branches: refs/heads/develop 0c31410c0 -> cdd6f009b
WIP 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/cdd6f009 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/cdd6f009 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/cdd6f009 Branch: refs/heads/develop Commit: cdd6f009b2e58d53344c82c49c13fc5bfa247524 Parents: 0c31410 Author: scnakandala <[email protected]> Authored: Wed Jun 28 14:10:25 2017 -0400 Committer: scnakandala <[email protected]> Committed: Wed Jun 28 14:10:25 2017 -0400 ---------------------------------------------------------------------- app/controllers/AccountController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/cdd6f009/app/controllers/AccountController.php ---------------------------------------------------------------------- diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index 1709b9b..499e751 100644 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -120,9 +120,9 @@ class AccountController extends BaseController $response = Keycloak::authenticate($username, $password); if(!isset($response->access_token)){ if (Keycloak::isUpdatePasswordRequired($username)) { - return Redirect::to("login" . '&status=failed')->with("update-password-required", true); + return Redirect::to("login" . '?status=failed')->with("update-password-required", true); } else { - return Redirect::to("login". '&status=failed')->with("invalid-credentials", true); + return Redirect::to("login". '?status=failed')->with("invalid-credentials", true); } } @@ -174,9 +174,9 @@ class AccountController extends BaseController } if(Session::has("admin") || Session::has("admin-read-only")){ - return Redirect::to("admin/dashboard", array('status'=>'ok', 'code'=>$accessToken)); + return Redirect::to("admin/dashboard". "?status=ok&code=".$accessToken); }else{ - return Redirect::to("account/dashboard", array('status'=>'ok', 'code'=>$accessToken)); + return Redirect::to("account/dashboard". "?status=ok&code=".$accessToken); } }
