summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.initial.password5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc.initial.password b/etc/rc.initial.password
index d944546..77d4740 100755
--- a/etc/rc.initial.password
+++ b/etc/rc.initial.password
@@ -31,6 +31,7 @@
*/
/* parse the configuration and include all functions used below */
+ require_once("globals.inc");
require_once("config.inc");
require_once("functions.inc");
@@ -38,7 +39,7 @@
echo <<<EOD
-The webGUI password will be reset to the default (which is 'pfsense').
+The webGUI password will be reset to the default (which is '{$g['factory_shipped_password']}').
Do you want to proceed [y|n]?
EOD;
@@ -46,7 +47,7 @@ EOD;
if (strcasecmp(chop(fgets($fp)), "y") == 0) {
$config['system']['username'] = "admin";
- $config['system']['password'] = crypt("pfsense");
+ $config['system']['password'] = crypt($g['factory_shipped_password']);
write_config("password changed from console menu");
system_password_configure();
OpenPOWER on IntegriCloud