From ecd3db2c7134cad8fcae89d4d9c0ecf2e38adb07 Mon Sep 17 00:00:00 2001 From: wangsijie Date: Mon, 25 Mar 2024 10:25:21 +0800 Subject: [PATCH] refactor(core): remove unused mark mfa skip function (#5517) fixed #5482 --- .../interaction/verifications/mfa-verification.ts | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/core/src/routes/interaction/verifications/mfa-verification.ts b/packages/core/src/routes/interaction/verifications/mfa-verification.ts index 8d08e5437..51e83ded2 100644 --- a/packages/core/src/routes/interaction/verifications/mfa-verification.ts +++ b/packages/core/src/routes/interaction/verifications/mfa-verification.ts @@ -135,20 +135,6 @@ const isMfaSkipped = (logtoConfig: JsonObject): boolean => { return parsed.success ? parsed.data[userMfaDataKey].skipped === true : false; }; -/** - * Mark MFA as skipped in user custom data - */ -export const markMfaSkipped = async (tenant: TenantContext, accountId: string) => { - const { customData } = await tenant.queries.users.findUserById(accountId); - await tenant.queries.users.updateUserById(accountId, { - customData: { - ...customData, - [userMfaDataKey]: { - skipped: true, - }, - }, - }); -}; export const validateMandatoryBindMfa = async ( tenant: TenantContext,