1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-20 06:50:23 +03:00

Update domain handling in update_transport_ticket to format username correctly

This commit is contained in:
Adolfo Gómez García 2025-01-15 18:22:49 +01:00
parent 4224f9be66
commit 793f6fda18
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -249,6 +249,9 @@ def update_transport_ticket(
data.get('password', None) or None
) # If password is empty, set it to None
domain = data.get('domain', None) or None # If empty string, set to None
if domain and '.' in domain:
username = f'{username}@{domain}'
domain = None
if password:
password = CryptoManager().symmetric_encrypt(password, scrambler)