Password check before adding or deleting SecondFactorAuthentication

Add SystemModel 117

Close #5986

Co-authored-by: Willow <ivk@tutao.de>
This commit is contained in:
wrd 2024-11-12 17:47:35 +01:00
parent ff2ca8aeae
commit ddb27867df
25 changed files with 1265 additions and 835 deletions

View file

@ -1,6 +1,7 @@
import {
CacheMode,
EntityRestClient,
EntityRestClientEraseOptions,
EntityRestClientLoadOptions,
EntityRestClientSetupOptions,
EntityRestInterface,
@ -312,8 +313,8 @@ export class DefaultEntityRestCache implements EntityRestCache {
return this.entityRestClient.update(instance)
}
erase<T extends SomeEntity>(instance: T): Promise<void> {
return this.entityRestClient.erase(instance)
erase<T extends SomeEntity>(instance: T, options?: EntityRestClientEraseOptions): Promise<void> {
return this.entityRestClient.erase(instance, options)
}
getLastEntityEventBatchForGroup(groupId: Id): Promise<Id | null> {