aboutsummaryrefslogtreecommitdiffstats
path: root/ddns/frontend/dyn_com.py
diff options
context:
space:
mode:
Diffstat (limited to 'ddns/frontend/dyn_com.py')
-rw-r--r--ddns/frontend/dyn_com.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ddns/frontend/dyn_com.py b/ddns/frontend/dyn_com.py
index b8d71c9..1bef8cf 100644
--- a/ddns/frontend/dyn_com.py
+++ b/ddns/frontend/dyn_com.py
@@ -40,10 +40,10 @@ def dyn_com():
if zone_name == zone['name']:
for domain in zone['domains']:
if domain['domain'] == hostname:
- if request.authorization.username in users:
+ if request.authorization.username in domain['users']:
ddns.backend.dnsupdate.update_dns(zone_name, hostname, ip)
# We should probably check something here...
return "good"
- return auth.authenticate("!yours")
+ return ddns.auth.authenticate("!yours")
return "nohost"
return "nohost"