Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Refactor user_name/password condition #44

Merged
merged 1 commit into from
Jul 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions templates/users.j2
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
<{{ user.name }}>
{% if user.password is defined and user.password_sha256_hex is not defined %}
<password>{{ user.password }}</password>
{% elif user.password is not defined and user.password_sha256_hex is defined %}
<password_sha256_hex>{{ user.password_sha256_hex }}</password_sha256_hex>
{% elif user.password is defined and user.password_sha256_hex is defined %}
{% elif user.password_sha256_hex is defined %}
<password_sha256_hex>{{ user.password_sha256_hex }}</password_sha256_hex>
{% endif %}
<networks incl="networks" replace="replace">
Expand Down