X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/c447f2d7c18e5e89d83b420a8c706fbfa07c9b85..5a2c8be421e642c30dc42660abdf31862cec3abe:/install.php?ds=sidebyside diff --git a/install.php b/install.php index 2739bc8..b400988 100644 --- a/install.php +++ b/install.php @@ -154,7 +154,11 @@ if (isset($_POST['step']) && isset($_POST['next'])) { break; case 2: - $cfg['admin_password'] = hash('sha256', $_POST['admin_password']); + if (strlen($_POST['admin_password'])) { + $cfg['admin_password'] = hash('sha256', $_POST['admin_password']); + } else { + $cfg['admin_password'] = ''; + } jirafeau_export_cfg($cfg); break;