calc api key with docker hash
This commit is contained in:
parent
4a7116c5d7
commit
0620d1eb14
|
@ -11,15 +11,6 @@ function calcAPIKey($container)
|
|||
{
|
||||
global $RUNTIME;
|
||||
|
||||
return md5($RUNTIME['SYSTEMKEY'].md5(trim(ltrim($container['Names']['0'], '/'))));
|
||||
return md5($container['Id']);
|
||||
}
|
||||
|
||||
if(!file_exists("./pages/systemkey.txt"))
|
||||
{
|
||||
$randomKey = md5(rand(111111111, 999999999));
|
||||
file_put_contents("./pages/systemkey.txt", $randomKey);
|
||||
}
|
||||
|
||||
$RUNTIME['SYSTEMKEY'] = file_get_contents("./pages/systemkey.txt");
|
||||
|
||||
?>
|
Loading…
Reference in New Issue