calc api key with docker hash

This commit is contained in:
Christopher 2020-10-23 23:44:31 +02:00
parent 4a7116c5d7
commit 0620d1eb14
1 changed files with 1 additions and 10 deletions

View File

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