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:
parent
74c5643bcf
commit
1638243d84
@ -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
|
||||
|
@ -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 '')
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user