Skip to content

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

fix(auth): clear stale MFA attempts warning on successful verification (#7791)

claude[bot]b5edce8ba6a1
diff --git a/frontend/src/components/auth/Mfa.tsx b/frontend/src/components/auth/Mfa.tsx
index 4aaf254ae7..8b518f933d 100644
--- a/frontend/src/components/auth/Mfa.tsx
+++ b/frontend/src/components/auth/Mfa.tsx
@@ -128,6 +128,7 @@ export const Mfa = ({ successCallback, closeMfa, email, method, onChangeAccount
mfaMethod: MfaMethod,
isRecoveryCodeFlow: boolean
) => {
+ setTriesLeft(undefined);
SecurityClient.setMfaToken("");
SecurityClient.setToken(sessionToken);