mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add U2F support
This commit is contained in:
@@ -71,12 +71,6 @@ export const applyActionsFromDevice = async ({ database, request, websocket, con
|
||||
// update the next sequence number
|
||||
nextSequenceNumber = action.sequenceNumber + 1
|
||||
|
||||
const { isChildLimitAdding } = await assertActionIntegrity({
|
||||
deviceId: baseInfo.deviceId,
|
||||
cache,
|
||||
action
|
||||
})
|
||||
|
||||
if (action.type === 'appLogic') {
|
||||
await dispatchAppLogicAction({
|
||||
action,
|
||||
@@ -85,14 +79,27 @@ export const applyActionsFromDevice = async ({ database, request, websocket, con
|
||||
eventHandler
|
||||
})
|
||||
} else if (action.type === 'parent') {
|
||||
const { isChildLimitAdding, authentication } = await assertActionIntegrity({
|
||||
deviceId: baseInfo.deviceId,
|
||||
cache,
|
||||
action
|
||||
})
|
||||
|
||||
await dispatchParentAction({
|
||||
action,
|
||||
cache,
|
||||
deviceId: baseInfo.deviceId,
|
||||
eventHandler,
|
||||
isChildLimitAdding
|
||||
isChildLimitAdding,
|
||||
authentication
|
||||
})
|
||||
} else if (action.type === 'child') {
|
||||
await assertActionIntegrity({
|
||||
deviceId: baseInfo.deviceId,
|
||||
cache,
|
||||
action
|
||||
})
|
||||
|
||||
await dispatchChildAction({
|
||||
action,
|
||||
cache,
|
||||
|
||||
Reference in New Issue
Block a user