summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dale <sdale@pfsense.org>2007-09-06 03:13:59 +0000
committerScott Dale <sdale@pfsense.org>2007-09-06 03:13:59 +0000
commitec5a5d652b57658d4f94a7d64c55e5bc6e04df79 (patch)
tree805e79c3d50da772c192f5e5da7f4f883fdff465
parentb5c78501097b57d02fa20d85e03117160bb6900a (diff)
downloadpfsense-ec5a5d652b57658d4f94a7d64c55e5bc6e04df79.zip
pfsense-ec5a5d652b57658d4f94a7d64c55e5bc6e04df79.tar.gz
We Do not validate username field anymore on this page. Has been removed for user manage.
-rwxr-xr-xusr/local/www/system.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php
index e4ee36d..5f5613e 100755
--- a/usr/local/www/system.php
+++ b/usr/local/www/system.php
@@ -36,9 +36,6 @@ $pconfig['domain'] = $config['system']['domain'];
list($pconfig['dns1'],$pconfig['dns2']) = $config['system']['dnsserver'];
$pconfig['dnsallowoverride'] = isset($config['system']['dnsallowoverride']);
-$pconfig['username'] = $config['system']['username'];
-if (!$pconfig['username'])
- $pconfig['username'] = "admin";
$pconfig['webguiproto'] = $config['system']['webgui']['protocol'];
if (!$pconfig['webguiproto'])
$pconfig['webguiproto'] = "http";
@@ -85,8 +82,8 @@ if ($_POST) {
$pconfig = $_POST;
/* input validation */
- $reqdfields = split(" ", "hostname domain username");
- $reqdfieldsn = split(",", "Hostname,Domain,Username");
+ $reqdfields = split(" ", "hostname domain");
+ $reqdfieldsn = split(",", "Hostname,Domain");
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
@@ -99,9 +96,6 @@ if ($_POST) {
if (($_POST['dns1'] && !is_ipaddr($_POST['dns1'])) || ($_POST['dns2'] && !is_ipaddr($_POST['dns2']))) {
$input_errors[] = "A valid IP address must be specified for the primary/secondary DNS server.";
}
- if ($_POST['username'] && !preg_match("/^[a-zA-Z0-9]*$/", $_POST['username'])) {
- $input_errors[] = "The username may only contain the characters a-z, A-Z and 0-9.";
- }
if ($_POST['webguiport'] && (!is_numericint($_POST['webguiport']) ||
($_POST['webguiport'] < 1) || ($_POST['webguiport'] > 65535))) {
$input_errors[] = "A valid TCP/IP port must be specified for the webGUI port.";
@@ -123,7 +117,6 @@ if ($_POST) {
if (!$input_errors) {
update_if_changed("hostname", $config['system']['hostname'], strtolower($_POST['hostname']));
update_if_changed("domain", $config['system']['domain'], strtolower($_POST['domain']));
- update_if_changed("username", $config['system']['username'], $_POST['username']);
if (update_if_changed("webgui protocol", $config['system']['webgui']['protocol'], $_POST['webguiproto']))
$restart_webgui = true;
OpenPOWER on IntegriCloud