1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-03 01:17:56 +03:00

Fixed FQDN domain transport form

This commit is contained in:
Adolfo Gómez 2014-06-03 11:50:58 +00:00
parent eca08d6350
commit 3f97533e41
2 changed files with 3 additions and 3 deletions

View File

@ -175,7 +175,7 @@ class RDPTransport(Transport):
username, password, domain = '','',''
if domain != '':
if domain.find('.') == -1: # Dotter domain form
if '.' in domain: # Dotter domain form
username = username + '@' + domain
domain = ''
@ -195,4 +195,4 @@ class RDPTransport(Transport):
def getHtmlComponent(self, id, os, componentId):
# We use helper to keep this clean
return getHtmlComponent(self.__module__, componentId)

View File

@ -163,7 +163,7 @@ class TSRDPTransport(Transport):
username, password, domain = '','',''
if domain != '':
if domain.find('.') == -1: # Dotter domain form
if '.' in domain: # Dotter domain form
username = username + '@' + domain
domain = ''