Merge branch 'develop' into loic
This commit is contained in:
commit
88894499be
2 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,7 @@ class App{
|
|||
|
||||
public function show(){
|
||||
echo json_encode($this->output);
|
||||
//error_log(var_dump(json_encode($this->output), true), 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
2
server/core/LibOverride/genTokenOptions.php
Normal file → Executable file
2
server/core/LibOverride/genTokenOptions.php
Normal file → Executable file
|
@ -260,6 +260,7 @@ class genTokenOptions
|
|||
public function loadBackup($back){
|
||||
|
||||
$backup = unserialize($back);
|
||||
|
||||
$this->backup["roles"] = $backup["roles"];
|
||||
$this->backup["project"] = $backup["project"];
|
||||
$this->backup["user"] = $backup["user"];
|
||||
|
@ -324,6 +325,7 @@ class genTokenOptions
|
|||
|
||||
private function unserializeToken($tokenSerialized){
|
||||
$Saved = file_get_contents("core/LibOverride/projectTokenData/".$this->backup["project"]);
|
||||
$Saved = unserialize($Saved);
|
||||
$api = new Api();
|
||||
$token = new Models\Token($this->httpClient, $api);
|
||||
$token->methods = unserialize($tokenSerialized["methods"]);
|
||||
|
|
Loading…
Add table
Reference in a new issue