Skip to content

Commit

Permalink
refactor(core): remove unused mark mfa skip function (#5517)
Browse files Browse the repository at this point in the history
fixed #5482
  • Loading branch information
wangsijie authored Mar 25, 2024
1 parent 3ff97d4 commit ecd3db2
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ecd3db2

Please sign in to comment.