summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-08-30 03:18:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-08-30 03:18:42 +0000
commitcc0ef90eaa9f4e5631ec8bb2eff18b2672ac3824 (patch)
treeb23ea159e12e467b861a34b15286d3d3a4040144 /usr
parentacc4d42539d285826da3a9d26de2379d59d9374e (diff)
downloadpfsense-cc0ef90eaa9f4e5631ec8bb2eff18b2672ac3824.zip
pfsense-cc0ef90eaa9f4e5631ec8bb2eff18b2672ac3824.tar.gz
Unbreak wizard.
Pointy-hat-to: me
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/wizards/setup_wizard.xml75
1 files changed, 11 insertions, 64 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index 1cf882c..fd37c28 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.
*/
</copyright>
-<totalsteps>9</totalsteps>
+<totalsteps>8</totalsteps>
<step>
<id>1</id>
<title>pfSense Setup Wizard</title>
@@ -399,8 +399,8 @@
</step>
<step>
<id>6</id>
- <title>Set Admin webConfigurator Password</title>
- <description>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.</description>
+ <title>Set Admin WebGUI Password</title>
+ <description>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.</description>
<fields>
<field>
<name>Admin Password</name>
@@ -418,10 +418,14 @@
<stepsubmitphpaction>
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 @@
</step>
<step>
<id>7</id>
- <stepbeforeformdisplay>
- <![CDATA[
- if(file_exists("/conf/registered_with_pfsense_org"))
- header("Location:wizard.php?xml=traffic_shaper_wizard.xml&stepid=8");
- ]]>
- </stepbeforeformdisplay>
- <title>Register installation</title>
- <disableheader>true</disableheader>
- <description>
- Would you like to register this pfSense installation with pfSense.org?
- &lt;p/&gt;
- No private data will be sent, only the installations hardware profile (dmesg -a).
- &lt;p/&gt;
- This data will help us understand which hardware is in use and allow us to continually improve the project.
- </description>
- <fields>
- <field>
- <name>Register</name>
- <type>checkbox</type>
- <value>on</value>
- </field>
- <field>
- <name>E-Mail</name>
- <description>Optional</description>
- <type>input</type>
- <value>on</value>
- </field>
- <field>
- <name>Continue</name>
- <type>submit</type>
- </field>
- </fields>
- <stepsubmitphpaction>
- <![CDATA[
- if($_POST['register']) {
- $dmesg_data = urlencode(`/sbin/dmesg -a`);
- $email = urlencode($_POST['e-mail']);
-
- $ch = curl_init();
-
- curl_setopt($ch, CURLOPT_URL, "http://reg.pfsense.com/reg.php");
- curl_setopt($ch, CURLOPT_POST, "2");
- curl_setopt($ch, CURLOPT_POSTFIELDS, "dmesg=" . $dmesg_data . "&email=" . $email);
-
- $result = curl_exec($ch);
-
- curl_close($ch);
-
- conf_mount_rw();
- touch("/conf/registered_with_pfsense_org");
- conf_mount_ro();
- }
- ]]>
- </stepsubmitphpaction>
-</step>
-<step>
- <id>8</id>
<title>Reload configuration</title>
<disableheader>true</disableheader>
<description>Click 'Reload' to reload pfSense with new changes. If you changed the password, pfSense will ask you to log in again.</description>
@@ -499,7 +446,7 @@
</fields>
</step>
<step>
- <id>9</id>
+ <id>8</id>
<title>Reload in progress</title>
<description>A reload is now in progress. Please wait. &lt;p&gt; The system will automatically try to access $myurl in 120 seconds. &lt;p&gt; You can click on the icon above to access the site more quickly.
&lt;meta http-equiv="refresh" content="60; url=$myurl" &gt;</description>
OpenPOWER on IntegriCloud