Correction Erreur
This commit is contained in:
parent
d3fc2ab36c
commit
0dc17aa9ef
5 changed files with 10 additions and 7 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue