X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/6f8b5fe4757b151a042ea83adbce2eb6c218d104..3963e2bb1b0140a7912dad1e3314a46e49b1ee12:/install.php?ds=inline 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;