Correction Erreur

This commit is contained in:
EoleDev 2016-03-23 15:13:42 +01:00
parent d3fc2ab36c
commit 0dc17aa9ef
5 changed files with 10 additions and 7 deletions

View file

@ -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);