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:
@@ -45,6 +45,7 @@ export class Cache {
|
||||
|
||||
invalidiateUserList = false
|
||||
invalidiateDeviceList = false
|
||||
invalidateU2fList = false
|
||||
areChangesImportant = false
|
||||
|
||||
constructor ({ familyId, deviceId, hasFullVersion, database, transaction, connectedDevicesManager }: {
|
||||
@@ -271,6 +272,19 @@ export class Cache {
|
||||
this.invalidiateDeviceList = false
|
||||
}
|
||||
|
||||
if (this.invalidateU2fList) {
|
||||
await database.family.update({
|
||||
u2fKeysVersion: generateVersionId()
|
||||
}, {
|
||||
where: {
|
||||
familyId: this.familyId
|
||||
},
|
||||
transaction
|
||||
})
|
||||
|
||||
this.invalidateU2fList = false
|
||||
}
|
||||
|
||||
this.devicesWithModifiedShowDeviceConnected.forEach((showDeviceConnected, deviceId) => {
|
||||
this.connectedDevicesManager.notifyShareConnectedChanged({
|
||||
familyId: this.familyId,
|
||||
|
||||
Reference in New Issue
Block a user