From f8aca9742bb64cd5ac6ba63fb6b1bd3edf395be8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thorsten=20Ro=C3=9Fner?= <thorsten.rossner.extern@zendis.de>
Date: Wed, 27 Nov 2024 17:33:03 +0100
Subject: [PATCH] fix: Do not ignore invitation mail setting

---
 lib/ucs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ucs.py b/lib/ucs.py
index c5bc271..6ca3a75 100644
--- a/lib/ucs.py
+++ b/lib/ucs.py
@@ -284,7 +284,7 @@ class Ucs:
         else:
             logging.info(f"Creating user {username}")
             self.create_user(person)
-            if self.options_object.trigger_invitation_mail == 'True':
+            if self.options_object.trigger_invitation_mail:
                 psw_reset_trigger_payload = { "options": { "username": username, "method": "email" }}
                 self.__http_request(
                     method = 'post',
-- 
GitLab