captive: fix credentials configuration

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2023-06-23 17:34:09 +02:00
parent 87ac2d1f68
commit 11fffcf6c8

View File

@@ -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) }}