replace empty pw with a random one

This commit is contained in:
Ralf Becker 2019-07-05 15:24:33 +02:00
parent a43c5d3f1f
commit 424c7c3c81

View File

@ -234,6 +234,12 @@ while(($arg = array_shift($argv)))
{
$config[$name] = array_shift($argv);
// replace empty pw with a random one
if ($name === 'db_pass' && $config[$name] === '')
{
$config[$name] = randomstring();
}
switch($name)
{
case 'auth_type':