Skip to content

Commit

Permalink
refactor(core): remove unused mark mfa skip function
Browse files Browse the repository at this point in the history
fixed #5482
  • Loading branch information
wangsijie committed Mar 18, 2024
1 parent 7c22c50 commit fc73ac5
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 fc73ac5

Please sign in to comment.