Updated so fixed credentials are correctly got

This commit is contained in:
Adolfo Gómez 2013-10-16 11:32:16 +00:00
parent 15011dea95
commit fb463dee73
2 changed files with 6 additions and 4 deletions

View File

@ -156,6 +156,9 @@ class RDPTransport(Transport):
# We use helper to keep this clean
username = user.getUsernameForAuth()
prefs = user.prefs('rdp')
if self._fixedName is not '':
username = self._fixedName
proc = username.split('@')
if len(proc) > 1:
@ -164,8 +167,6 @@ class RDPTransport(Transport):
domain = ''
username = proc[0]
if self._fixedName is not '':
username = self._fixedName
if self._fixedPassword is not '':
password = self._fixedPassword
if self._fixedDomain is not '':

View File

@ -145,6 +145,9 @@ class TSRDPTransport(Transport):
# We use helper to keep this clean
username = user.getUsernameForAuth()
prefs = user.prefs('rdp')
if self._fixedName is not '':
username = self._fixedName
proc = username.split('@')
if len(proc) > 1:
@ -152,8 +155,6 @@ class TSRDPTransport(Transport):
else:
domain = ''
username = proc[0]
if self._fixedName is not '':
username = self._fixedName
if self._fixedPassword is not '':
password = self._fixedPassword
if self._fixedDomain is not '':