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:
parent
4224f9be66
commit
793f6fda18
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user