airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: json encode php array
Date Wed, 28 Jun 2017 21:42:18 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 200ebecb9 -> b935db14e


json encode php array


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

Branch: refs/heads/develop
Commit: b935db14e9380962d785249e6394fc9477a694d9
Parents: 200ebec
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed Jun 28 17:42:15 2017 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed Jun 28 17:42:15 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/b935db14/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index e0cbd67..f8ef42a 100644
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -494,9 +494,9 @@ class AccountController extends BaseController
             $accessToken = $response->access_token;
             $refreshToken = $response->refresh_token;
             $expirationTime = $response->expires_in; // 5 minutes safe margin
-            var_dump(json_encode(array('status'=>'ok', 'code'=>$accessToken, 'refresh_code'=>$refreshToken,
'valid_time'=>$expirationTime)));
+            echo json_encode(array('status'=>'ok', 'code'=>$accessToken, 'refresh_code'=>$refreshToken,
'valid_time'=>$expirationTime));
         }else{
-            var_dump(json_encode(array('status'=>'failed')));
+            echo json_encode(array('status'=>'failed'));
         }
     }
 


Mime
View raw message