Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: removed comment

=f97dc7871891
diff --git a/backend/src/services/auth/auth-login-service.ts b/backend/src/services/auth/auth-login-service.ts
index ed184b35b1..572c0cde55 100644
--- a/backend/src/services/auth/auth-login-service.ts
+++ b/backend/src/services/auth/auth-login-service.ts
@@ -683,7 +683,6 @@ export const authLoginServiceFactory = ({
const appCfg = getConfig();
const user = await userDAL.findById(userId);
- // Recovery codes are allowed regardless of required MFA method (they're for TOTP recovery)
if (mfaMethod !== requiredMfaMethod) {
throw new BadRequestError({
message: `Invalid MFA method. ${requiredMfaMethod} verification is required.`