mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
ddns.cgi: Drop static provider list for token based auth.
This is really hard to maintain when adding new or altering existing providers. Reference #12415. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
a99b73211a
commit
00e1105b92
@@ -665,13 +665,13 @@ sub GenerateDDNSConfigFile {
|
||||
|
||||
my $use_token = 0;
|
||||
|
||||
# Handle token based auth for various providers.
|
||||
if ($provider ~~ ["dns.lightningwirelabs.com", "entrydns.net", "regfish.com",
|
||||
"spdns.de", "zzzz.io"] && $username eq "token") {
|
||||
# Check if token based auth is configured.
|
||||
if ($username eq "token") {
|
||||
$use_token = 1;
|
||||
}
|
||||
|
||||
# Handle token auth for freedns.afraid.org and regfish.com.
|
||||
} elsif ($provider ~~ ["freedns.afraid.org", "regfish.com"] && $password eq "") {
|
||||
if ($provider ~~ ["freedns.afraid.org", "regfish.com"] && $password eq "") {
|
||||
$use_token = 1;
|
||||
$password = $username;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user