add container name check at login
This commit is contained in:
parent
0c0269cbe8
commit
c7cca2d51a
|
@ -9,11 +9,14 @@
|
|||
|
||||
foreach($allContainers as $thisContainer)
|
||||
{
|
||||
if(isset($thisContainer['Labels']['remotepass']))
|
||||
if(trim($_POST['containername']) == trim(ltrim($container['Names']['0'], '/')))
|
||||
{
|
||||
if(trim($thisContainer['Labels']['remotepass']) == trim($_POST['accesskey']))
|
||||
if(isset($thisContainer['Labels']['remotepass']))
|
||||
{
|
||||
$container = $thisContainer;
|
||||
if(trim($thisContainer['Labels']['remotepass']) == trim($_POST['accesskey']))
|
||||
{
|
||||
$container = $thisContainer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue