add label remotepass handler

This commit is contained in:
Christopher 2020-10-24 00:14:18 +02:00
parent 5d54cd48ed
commit 83384c1472
1 changed files with 7 additions and 4 deletions

View File

@ -9,10 +9,13 @@
foreach($allContainers as $thisContainer)
{
$apiKey = calcAPIKey($thisContainer);
if($apiKey == $_POST['accesskey'] && trim(ltrim($container['Names']['0'], '/') == trim($_POST['containername']))
$container = $thisContainer;
if(isset($thisContainer['Labels']['remotepass']))
{
if(trim($thisContainer['Labels']['remotepass']) == trim($_POST['accesskey']))
{
$container = $thisContainer;
}
}
}
if($container != NULL)