mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -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;
|
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 (
|
export const validateMandatoryBindMfa = async (
|
||||||
tenant: TenantContext,
|
tenant: TenantContext,
|
||||||
|
|
Loading…
Reference in a new issue