summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/config_modules_auth_mode.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/accel-ppp/config_modules_auth_mode.j2')
-rw-r--r--data/templates/accel-ppp/config_modules_auth_mode.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/accel-ppp/config_modules_auth_mode.j2 b/data/templates/accel-ppp/config_modules_auth_mode.j2
index e3d578b38..3fb8a011f 100644
--- a/data/templates/accel-ppp/config_modules_auth_mode.j2
+++ b/data/templates/accel-ppp/config_modules_auth_mode.j2
@@ -1,5 +1,5 @@
-{% if authentication is defined and authentication.mode is defined and authentication.mode == 'local' %}
+{% if authentication.mode is vyos_defined('local') %}
chap-secrets
-{% elif authentication is defined and authentication.mode is defined and authentication.mode == 'radius' %}
+{% elif authentication.mode is vyos_defined('radius') %}
radius
{% endif %}