summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-08-31 14:59:02 -0400
committerjim-p <jimp@pfsense.org>2010-08-31 14:59:02 -0400
commitce6d1106a185edeae91fb42dd7a9a9c89c273be8 (patch)
tree340b68ce718417a5abb125db33b0ad9961844e3f
parent18f15f68384e87d2b7485ab18f3a7381823432ad (diff)
downloadpfsense-ce6d1106a185edeae91fb42dd7a9a9c89c273be8.zip
pfsense-ce6d1106a185edeae91fb42dd7a9a9c89c273be8.tar.gz
Namecheap doesn't need a username, just hostname+password.
-rw-r--r--etc/inc/dyndns.class18
-rw-r--r--usr/local/www/services_dyndns_edit.php1
2 files changed, 10 insertions, 9 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 59738a3..1b332d0 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -98,17 +98,17 @@
log_error("DynDns: updatedns() starting");
if (!$dnsService) $this->_error(2);
- if (!($dnsService == 'freedns')) {
-
- /* all services except freedns use these */
-
- if (!$dnsUser) $this->_error(3);
+ switch ($dnsService) {
+ case 'freedns':
+ if (!$dnsHost) $this->_error(5);
+ break;
+ case 'namecheap':
if (!$dnsPass) $this->_error(4);
if (!$dnsHost) $this->_error(5);
- } else {
-
- /* freedns needs this */
-
+ break;
+ default:
+ if (!$dnsUser) $this->_error(3);
+ if (!$dnsPass) $this->_error(4);
if (!$dnsHost) $this->_error(5);
}
diff --git a/usr/local/www/services_dyndns_edit.php b/usr/local/www/services_dyndns_edit.php
index 2b374dd..c221e97 100644
--- a/usr/local/www/services_dyndns_edit.php
+++ b/usr/local/www/services_dyndns_edit.php
@@ -210,6 +210,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq"><?=gettext("Username");?></td>
<td width="78%" class="vtable">
<input name="username" type="text" class="formfld user" id="username" size="20" value="<?=htmlspecialchars($pconfig['username']);?>">
+ <br/><?= gettext("Username is required for all types except Namecheap and FreeDNS.");?>
</td>
</tr>
<tr>
OpenPOWER on IntegriCloud