0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(core): remove unused mark mfa skip function (#5517)

fixed #5482
This commit is contained in:
wangsijie 2024-03-25 10:25:21 +08:00 committed by GitHub
parent 3ff97d4ae1
commit ecd3db2c71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,