From 11fffcf6c8dcbc32a85fa990b7c0d12dd35b0b76 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 23 Jun 2023 17:34:09 +0200 Subject: [PATCH] captive: fix credentials configuration Signed-off-by: John Crispin --- renderer/templates/interface/captive.uc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderer/templates/interface/captive.uc b/renderer/templates/interface/captive.uc index 568ffea..b1e3e92 100644 --- a/renderer/templates/interface/captive.uc +++ b/renderer/templates/interface/captive.uc @@ -54,8 +54,8 @@ set uspot.{{ section }}.acct_secret={{ s(config.acct_secret) }} set uspot.{{ section }}.acct_interval={{ config.acct_interval }} {% endif %} -{% if (captive.auth_mode == 'credentials'): %} -{% for (let cred in captive.credentials): %} +{% if (config.auth_mode == 'credentials'): %} +{% for (let cred in config.credentials): %} add uspot credentials set uspot.@credentials[-1].username={{ s(cred.username) }} set uspot.@credentials[-1].password={{ s(cred.password) }}