From 47961289e3e051f8fabfad7db0eb496701ad8c90 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 28 Jun 2022 23:20:38 +0200 Subject: [PATCH] updated dokuwiki state --- states/dokuwiki/templates/users.auth.php.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/states/dokuwiki/templates/users.auth.php.j2 b/states/dokuwiki/templates/users.auth.php.j2 index c34802d..0c504e7 100644 --- a/states/dokuwiki/templates/users.auth.php.j2 +++ b/states/dokuwiki/templates/users.auth.php.j2 @@ -1,5 +1,5 @@ {%- from "dokuwiki/map.jinja" import dokuwiki with context %} {%- from "dokuwiki/map.jinja" import users with context %} -{%- for user in users %} -{{ user.name }}:{{ salt['shadow.gen_password'](password=user.password) }}:{{ user.fullname }}:{{ user.email|default("unknown@example.com") }}:{{ ([user.gid] + user.optional_groups)|join(",") }} +{%- for name,user in users.items() %} +{{ name }}:{{ salt['shadow.gen_password'](password=user.password) }}:{{ user.fullname }}:{{ user.email|default("unknown@example.com") }}:{{ ([user.gid] + user.optional_groups)|join(",") }} {%- endfor %}