mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
remove whitespaces then check for empty string as password
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
{%- set valid_users = [] -%}
|
{%- set valid_users = [] -%}
|
||||||
|
|
||||||
{%- for item, user in KAFKA_EXTERNAL_USERS.items() -%}
|
{%- for item, user in KAFKA_EXTERNAL_USERS.items() -%}
|
||||||
{% if 'password' in user and user.password is not none and user.password != "" -%}
|
{% if 'password' in user and user.password is not none and user.password.strip() != "" -%}
|
||||||
{% do valid_users.append('user_' ~ user.username ~ '="' ~ user.password ~ '"') -%}
|
{% do valid_users.append('user_' ~ user.username ~ '="' ~ user.password ~ '"') -%}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|||||||
Reference in New Issue
Block a user