1
0
mirror of https://github.com/dkmstr/openuds.git synced 2024-12-25 23:21:41 +03:00

Fixed html5 && actor v3

This commit is contained in:
Adolfo Gómez García 2020-06-10 02:14:18 +02:00
parent 74c5643bcf
commit 1638243d84
2 changed files with 3 additions and 4 deletions

View File

@ -128,7 +128,7 @@ class Test(ActorV3Action):
def post(self) -> typing.MutableMapping[str, typing.Any]:
# First, try to locate an user service providing this token.
try:
if self._params['type'] == UNMANAGED:
if self._params.get('type') == UNMANAGED:
Service.objects.get(token=self._params['token'])
else:
ActorToken.objects.get(token=self._params['token']) # Not assigned, because only needs check

View File

@ -259,11 +259,10 @@ class HTML5RDPTransport(transports.Transport):
ticket = models.TicketStore.create(params, validity=self.ticketValidity.num())
return HttpResponseRedirect(
"{}/transport/{}?{}.{}&{}".format(
"{}/transport/?{}.{}&{}".format(
self.guacamoleServer.value,
'o_n_w' if self.forceNewWindow.isTrue() else '',
ticket,
scrambler,
'javascript:window.close();'
'javascript:window.close();' + ('o_n_w=0;' if self.forceNewWindow.isTrue() else '')
)
)