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

Fixed SQLITE DB problems

This commit is contained in:
Adolfo Gómez García 2022-02-22 13:26:24 +01:00
parent 04e24d406f
commit 5084fec43f

View File

@ -263,6 +263,8 @@ class Initialize(ActorV3Action):
# Valid actor token, now validate access allowed. That is, look for a valid mac from the ones provided.
try:
# Enforce lowecase ids for sqlite
idsList = [i.lower() for i in idsList]
# Set full filter
dbFilter = dbFilter.filter(
unique_id__in=idsList,
@ -438,6 +440,9 @@ class LoginLogout(ActorV3Action):
x['mac'] for x in self._params['id']
][:10]
# Enforce lowercase for idList
idsList = [x.lower() for x in idsList]
validId: typing.Optional[str] = service.getValidId(idsList)
# Must be valid
@ -648,6 +653,9 @@ class Unmanaged(ActorV3Action):
][:10]
validId: typing.Optional[str] = service.getValidId(idsList)
# enforce lowercase idsList
idsList = [i.lower() for i in idsList]
# Check if there is already an assigned user service
# To notify it logout
userService: typing.Optional[UserService]