From 18bc336d7a052749e1a0928be59bfd0319097cce Mon Sep 17 00:00:00 2001 From: Bernward Sanchez Date: Wed, 11 Jan 2023 18:21:40 +0800 Subject: [PATCH 1/3] Potential fix --- powerdnsadmin/routes/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/powerdnsadmin/routes/index.py b/powerdnsadmin/routes/index.py index 3a6f55c..e6e8343 100644 --- a/powerdnsadmin/routes/index.py +++ b/powerdnsadmin/routes/index.py @@ -323,6 +323,7 @@ def login(): # Regexp didn't match, continue to next iteration continue + account = Account() sanitized_group_name = Account.sanitize_name(group_name) account_id = account.get_id_by_name(account_name=sanitized_group_name) From b607c1b7ff420939f9fcc86b4de02d956e08cdc1 Mon Sep 17 00:00:00 2001 From: Sshafi Date: Wed, 25 Jan 2023 23:59:35 +0100 Subject: [PATCH 2/3] Update base.html Use SITE_NAME for upper left title on base page. This can be useful when using multiple powerdns admin in an organization. --- powerdnsadmin/templates/base.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/powerdnsadmin/templates/base.html b/powerdnsadmin/templates/base.html index 85b2f82..35bfc51 100644 --- a/powerdnsadmin/templates/base.html +++ b/powerdnsadmin/templates/base.html @@ -32,7 +32,13 @@ PDA - PowerDNS-Admin + + {% if SETTING.get('site_name') %} + {{ SITE_NAME }} + {% else %} + PowerDNS-Admin + {% endif %} +