X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=inc%2Fhtml%2Finstall.php;h=4b2d02cb3673dca4cc1a1a53d096015f807cce6b;hp=d3def31fe5b96dbb7273298cb98f7ac777e2e65c;hb=1eff14d093d541d9858f73ffca042de5a2bf3ea5;hpb=274b5f5506b242b4680bc8fe3d9811f668c06f29 diff --git a/inc/html/install.php b/inc/html/install.php index d3def31..4b2d02c 100644 --- a/inc/html/install.php +++ b/inc/html/install.php @@ -10,6 +10,10 @@ <?php ptrans ('SYP wizard')?> @@ -192,7 +207,8 @@ if ($users_table_exists) { par_success (trans ('Found user table.')); } else { - if (isset($_POST ["admin_pass"])) { + $empty_pass = (isset ($_POST ["admin_pass"]) && (strlen ($_POST ["admin_pass"]) == 0)); + if ($_POST ["admin_pass"]) { try { $connection->create_users_table (true); } catch (Exception $e) { @@ -207,11 +223,15 @@ par_success (trans ('Admin password initialized.')); } else { - print ('
+ print (' - - -
'); + '); + if ($empty_pass) { + print ('

' . trans('Password cannot be empty') . '

'); + } else { + print (''); + } + print ('
'); leave (); } }