public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, master, updated. 5fe185f83c98d86cdbca470ecbea5c1365cae3f9
@ 2014-08-04 10:54 git
  0 siblings, 0 replies; only message in thread
From: git @ 2014-08-04 10:54 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 2470 bytes --]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".

The branch, master has been updated
       via  5fe185f83c98d86cdbca470ecbea5c1365cae3f9 (commit)
      from  b3f401fba4b69ea06a1987a971f8f7ff59b3ee33 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5fe185f83c98d86cdbca470ecbea5c1365cae3f9
Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
Date:   Fri Aug 1 19:56:52 2014 +0200

    ddns.cgi: Fix token auth for provider regfish.com.
    
    In the past the regfish.com auth token was stored as username similar than freedns.afraid.com. We now expected
    the token key stored as password, to keep compatiblity with old installations I've added some compatible code
    to prevent users from various issues.

-----------------------------------------------------------------------

Summary of changes:
 html/cgi-bin/ddns.cgi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Difference in files:
diff --git a/html/cgi-bin/ddns.cgi b/html/cgi-bin/ddns.cgi
index 7be9a50..3072a8b 100644
--- a/html/cgi-bin/ddns.cgi
+++ b/html/cgi-bin/ddns.cgi
@@ -187,7 +187,7 @@ if (($settings{'ACTION'} eq $Lang::tr{'add'}) || ($settings{'ACTION'} eq $Lang::
 
 	# Check if a password has been typed in.
 	# freedns.afraid.org does not require this field.
-	if (($settings{'PASSWORD'} eq '') && ($settings{'SERVICE'} ne 'freedns.afraid.org')) {
+	if (($settings{'PASSWORD'} eq '') && ($settings{'SERVICE'} ne 'freedns.afraid.org') && ($settings{'SERVICE'} ne 'regfish.com')) {
 		$errormessage = $Lang::tr{'password not set'};
 	}
 
@@ -650,8 +650,8 @@ sub GenerateDDNSConfigFile {
 		if ($provider ~~ ["dns.lightningwirelabs.com", "entrydns.net", "regfish.com"] && $username eq "token") {
 			$use_token = 1;
 
-		# Handle token auth for freedns.afraid.org.
-		} elsif ($provider eq "freedns.afraid.org" && $password eq "") {
+		# Handle token auth for freedns.afraid.org and regfish.com.
+		} elsif ($provider ~~ ["freedns.afraid.org", "regfish.com"] && $password eq "") {
 			$use_token = 1;
 			$password = $username;
 


hooks/post-receive
--
IPFire 2.x development tree

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-04 10:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-04 10:54 [git.ipfire.org] IPFire 2.x development tree branch, master, updated. 5fe185f83c98d86cdbca470ecbea5c1365cae3f9 git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox