diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index 1cf882cb72..fd37c282e1 100644
--- a/usr/local/www/wizards/setup_wizard.xml
+++ b/usr/local/www/wizards/setup_wizard.xml
@@ -31,7 +31,7 @@
POSSIBILITY OF SUCH DAMAGE.
*/
-9
+8
1
pfSense Setup Wizard
@@ -399,8 +399,8 @@
6
- Set Admin webConfigurator Password
- On this screen we will set the Admin password which is used to access the webConfigurator and also SSH services if you wish to enable.
+ Set Admin WebGUI Password
+ On this screen we will set the Admin password which is used to access the WebGUI and also SSH services if you wish to enable.
Admin Password
@@ -418,10 +418,14 @@
if($_POST['adminpassword'] != "") {
if($_POST['adminpassword'] == $_POST['adminpasswordagain']) {
- $admin_user =& getUserEntryByUID(0);
- local_user_set_password($admin_user, $_POST['adminpassword']);
- local_user_set($admin_user);
+ $fd = popen("/usr/sbin/pw usermod -n root -H 0", "w");
+ $salt = md5(time());
+ $crypted_pw = crypt($_POST['adminpassword'],$salt);
+ fwrite($fd, $crypted_pw);
+ pclose($fd);
+ $config['system']['password'] = crypt($_POST['adminpassword']);
write_config();
+ system_password_configure();
} else {
print_info_box_np("Passwords do not match! Please press back in your browser window and correct.");
die;
@@ -431,63 +435,6 @@
7
-
-
-
- Register installation
- true
-
- Would you like to register this pfSense installation with pfSense.org?
- <p/>
- No private data will be sent, only the installations hardware profile (dmesg -a).
- <p/>
- This data will help us understand which hardware is in use and allow us to continually improve the project.
-
-
-
- Register
- checkbox
- on
-
-
- E-Mail
- Optional
- input
- on
-
-
- Continue
- submit
-
-
-
-
-
-
-
- 8
Reload configuration
true
Click 'Reload' to reload pfSense with new changes. If you changed the password, pfSense will ask you to log in again.
@@ -499,7 +446,7 @@
- 9
+ 8
Reload in progress
A reload is now in progress. Please wait. <p> The system will automatically try to access $myurl in 120 seconds. <p> You can click on the icon above to access the site more quickly.
<meta http-equiv="refresh" content="60; url=$myurl" >