summaryrefslogtreecommitdiff
path: root/data/templates/ocserv/ocserv_otp_usr.j2
blob: b2511ed94e421ce38ba7ef00308d5e94ecdf6468 (plain)
1
2
3
4
5
6
7
8
#<token_type> <username> <pin> <secret_hex_key> <counter> <lastpass> <time>
{% if username is vyos_defined %}
{%     for user, user_config in username.items() %}
{%         if user_config.disable is not vyos_defined and user_config.otp is vyos_defined %}
{{ user_config.otp.token_tmpl }} {{ user }} {{ user_config.otp.pin | default("-", true) }} {{ user_config.otp.key }}
{%         endif %}
{%     endfor %}
{% endif %}