mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Dont set root password if fields are blank.
This commit is contained in:
parent
a0c57a4408
commit
0fbc9d1ae2
@ -2036,6 +2036,7 @@
|
||||
<name>ADMIN Password AGAIN</name>
|
||||
<type>password</type>
|
||||
<stepsubmitphpaction>
|
||||
if($_POST['adminpassword'] != "") {
|
||||
if($_POST['adminpassword'] == $_POST['adminpasswordagain']) {
|
||||
$fd = popen("/usr/sbin/pw usermod -n root -H 0", "w");
|
||||
$salt = md5(time());
|
||||
@ -2046,6 +2047,7 @@
|
||||
print_info_box_np("Passwords do not match!");
|
||||
die;
|
||||
}
|
||||
}
|
||||
</stepsubmitphpaction>
|
||||
</field>
|
||||
<field>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user