forked from shaba/openuds
Fixed SQLITE DB problems
This commit is contained in:
parent
04e24d406f
commit
5084fec43f
@ -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.
|
# Valid actor token, now validate access allowed. That is, look for a valid mac from the ones provided.
|
||||||
try:
|
try:
|
||||||
|
# Enforce lowecase ids for sqlite
|
||||||
|
idsList = [i.lower() for i in idsList]
|
||||||
# Set full filter
|
# Set full filter
|
||||||
dbFilter = dbFilter.filter(
|
dbFilter = dbFilter.filter(
|
||||||
unique_id__in=idsList,
|
unique_id__in=idsList,
|
||||||
@ -438,6 +440,9 @@ class LoginLogout(ActorV3Action):
|
|||||||
x['mac'] for x in self._params['id']
|
x['mac'] for x in self._params['id']
|
||||||
][:10]
|
][:10]
|
||||||
|
|
||||||
|
# Enforce lowercase for idList
|
||||||
|
idsList = [x.lower() for x in idsList]
|
||||||
|
|
||||||
validId: typing.Optional[str] = service.getValidId(idsList)
|
validId: typing.Optional[str] = service.getValidId(idsList)
|
||||||
|
|
||||||
# Must be valid
|
# Must be valid
|
||||||
@ -648,6 +653,9 @@ class Unmanaged(ActorV3Action):
|
|||||||
][:10]
|
][:10]
|
||||||
validId: typing.Optional[str] = service.getValidId(idsList)
|
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
|
# Check if there is already an assigned user service
|
||||||
# To notify it logout
|
# To notify it logout
|
||||||
userService: typing.Optional[UserService]
|
userService: typing.Optional[UserService]
|
||||||
|
Loading…
Reference in New Issue
Block a user