summaryrefslogtreecommitdiff
path: root/data/templates/ocserv/ocserv_otp_usr.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/ocserv/ocserv_otp_usr.tmpl')
-rw-r--r--data/templates/ocserv/ocserv_otp_usr.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ocserv/ocserv_otp_usr.tmpl b/data/templates/ocserv/ocserv_otp_usr.tmpl
index db8893ae8..fea9af5d5 100644
--- a/data/templates/ocserv/ocserv_otp_usr.tmpl
+++ b/data/templates/ocserv/ocserv_otp_usr.tmpl
@@ -1,6 +1,6 @@
#<token_type> <username> <pin> <secret_hex_key> <counter> <lastpass> <time>
{% if username is defined %}
-{% for user, user_config in username.itmes() %}
+{% for user, user_config in username.items() %}
{% if user_config.disable is not defined and user_config.otp is defined and user_config.otp is not none %}
{{ user_config.otp.token_tmpl }} {{ user }} {{ user_config.otp.pin | default("-", true) }} {{ user_config.otp.key }}
{% endif %}