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:
parent
3ff97d4ae1
commit
ecd3db2c71
1 changed files with 0 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue