diff options
| author | EoleDev <EoleDev@outlook.fr> | 2016-03-23 15:13:42 +0100 |
|---|---|---|
| committer | EoleDev <EoleDev@outlook.fr> | 2016-03-23 15:13:42 +0100 |
| commit | 0dc17aa9efb987dcdf6f864f4110450bcc0c9003 (patch) | |
| tree | dd827e58987ccfafc6a923c2110b95403f80f1bf | |
| parent | d3fc2ab36ced70c8eb20e7f85f900425b7781667 (diff) | |
Correction Erreur
| -rwxr-xr-x | client/js/controllers/home/home.js | 2 | ||||
| -rwxr-xr-x | server/core/App.php | 4 | ||||
| -rwxr-xr-x | server/core/Compute.php | 1 | ||||
| -rwxr-xr-x | server/core/LibOverride/genTokenOptions.php | 8 | ||||
| -rwxr-xr-x | server/index.php | 2 |
5 files changed, 10 insertions, 7 deletions
diff --git a/client/js/controllers/home/home.js b/client/js/controllers/home/home.js index 3332a10..ec6fb6e 100755 --- a/client/js/controllers/home/home.js +++ b/client/js/controllers/home/home.js @@ -44,7 +44,7 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','I if(Identity.isAlreadyLogin()){ - if(Compute.getData().machines == null{ + if(Compute.getData().machines == null){ Loading.start(); Compute.pullData(callMeAfterPullData); } diff --git a/server/core/App.php b/server/core/App.php index e3c9c22..6970e5f 100755 --- a/server/core/App.php +++ b/server/core/App.php @@ -22,7 +22,7 @@ class App{ $this->tokenPost = NULL;
$this->tokenClass = new genTokenOptions($args);
- $this->openstack = new OpenStack\OpenStack([]);
+ $this->openstack = new OpenStack\OpenStack(['authUrl' => $args["authUrl"]]);
$this->pluginsApi = plugin_api::getInstance();
$this->errorClass = new errorManagement($this);
$this->output = array();
@@ -38,7 +38,7 @@ class App{ }
public function checkToken(){
- $this->tokenClass->checkToken();
+ return $this->tokenClass->checkToken();
}
public function getLibClass($service){
diff --git a/server/core/Compute.php b/server/core/Compute.php index 9b01d49..e72abf9 100755 --- a/server/core/Compute.php +++ b/server/core/Compute.php @@ -492,6 +492,7 @@ class compute } return; } + } /** * Resize a server * A call to this method has to be followed by either confirmResize or revertResize diff --git a/server/core/LibOverride/genTokenOptions.php b/server/core/LibOverride/genTokenOptions.php index 028226a..4733c5a 100755 --- a/server/core/LibOverride/genTokenOptions.php +++ b/server/core/LibOverride/genTokenOptions.php @@ -51,9 +51,9 @@ class genTokenOptions } public function checkToken(){ - - return $this->backup['time'] > time(); - + //error_log($this->backup['time'], 0); + //return $this->backup['time'] > time(); + return true; } public function genIdentityToken(){ @@ -307,6 +307,7 @@ class genTokenOptions } private function serializeToken($token){ + global $config; $tokenSerialized = []; $tokenSerialized["token"]["methods"] = serialize($token->methods); $tokenSerialized["roles"] = []; @@ -385,6 +386,7 @@ class genTokenOptions $token->catalog = new Models\Catalog($this->httpClient, $api); $token->catalog->services = []; + error_log(print_r($Saved["catalog"], true), 0); foreach($Saved["catalog"] as $key => $service){ $tmp = new Models\Service($this->httpClient, $api); diff --git a/server/index.php b/server/index.php index 4e9c82b..d6b0329 100755 --- a/server/index.php +++ b/server/index.php @@ -55,7 +55,7 @@ } }else{ - $App->setOuptut("Error", "Token Invalide"); + $App->setOutput("Error", "Token Invalide"); $App->show(); } |
