summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorgnhb <gnoahb@gmail.com>2011-02-24 00:05:17 +0700
committergnhb <gnoahb@gmail.com>2011-02-24 00:05:17 +0700
commitd9cc4b24d09c04dc2a1974ab8da8e564f7462e36 (patch)
tree27bbad66a4552cd2e9d2852c0ea1be3e95926ff3 /usr/local
parent1f9d17ef8d0577f8e56d6426975823d9bc68ead2 (diff)
downloadpfsense-d9cc4b24d09c04dc2a1974ab8da8e564f7462e36.zip
pfsense-d9cc4b24d09c04dc2a1974ab8da8e564f7462e36.tar.gz
Try again, a little cleaner: Prevent GUI from giving error for freeDNS service since username and password
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/services_dyndns_edit.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index 9ff0f22..5c3f5fd 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -76,16 +76,15 @@ if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
+
+ if($pconfig['type'] == "freedns" || $pconfig['type'] == "namecheap")
+ $_POST['username'] = "not_required";
/* input validation */
$reqdfields = array();
$reqdfieldsn = array();
- $reqdfields = array("host", "password", "type");
- $reqdfieldsn = array(gettext("Hostname"),gettext("Password"),gettext("Service type"));
- if ($pconfig['type'] != "namecheap") {
- $reqdfields[] = "username";
- $reqdfieldsn[] = gettext("Username");
- }
+ $reqdfields = array("host", "username", "password", "type");
+ $reqdfieldsn = array(gettext("Hostname"),gettext("Username"),gettext("Password"),gettext("Service type"));
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
@@ -217,6 +216,8 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq"><?=gettext("Password");?></td>
<td width="78%" class="vtable">
<input name="password" type="password" class="formfld pwd" id="password" size="20" value="<?=htmlspecialchars($pconfig['password']);?>">
+ <br/>
+ <?=gettext("FreeDNS (freedns.afraid.org): Enter your \"Authentication Token\" provided by FreeDNS.");?>
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud