Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
misc: removed remaining mfa handling
Sheen Capadngan8eb668cd72c4
diff --git a/frontend/src/views/Login/LoginSSO.tsx b/frontend/src/views/Login/LoginSSO.tsxindex 5d81fdaecc..7741602d86 100644--- a/frontend/src/views/Login/LoginSSO.tsx+++ b/frontend/src/views/Login/LoginSSO.tsx@@ -30,7 +30,6 @@ export const LoginSSO = ({ providerAuthToken }: Props) => {email={username}password={password}setPassword={setPassword}- setStep={setStep}/>);default:diff --git a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx b/frontend/src/views/Login/components/InitialStep/InitialStep.tsxindex e51d475aa2..e2f8f99b9f 100644--- a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx+++ b/frontend/src/views/Login/components/InitialStep/InitialStep.tsx@@ -102,17 +102,7 @@ export const InitialStep = ({ setStep, email, setEmail, password, setPassword }:if (isLoginSuccessful && isLoginSuccessful.success) {// case: login was successful-- if (isLoginSuccessful.mfaEnabled) {- // case: login requires MFA step- setStep(1);- setIsLoading(false);- return;- }-navigateToSelectOrganization();-- // case: login does not require MFA stepcreateNotification({text: "Successfully logged in",type: "success"diff --git a/frontend/src/views/Login/components/PasswordStep/PasswordStep.tsx b/frontend/src/views/Login/components/PasswordStep/PasswordStep.tsxindex e1dc88312c..8276030675 100644--- a/frontend/src/views/Login/components/PasswordStep/PasswordStep.tsx+++ b/frontend/src/views/Login/components/PasswordStep/PasswordStep.tsx@@ -27,16 +27,9 @@ type Props = {email: string;password: string;setPassword: (password: string) => void;- setStep: (step: number) => void;};-export const PasswordStep = ({- providerAuthToken,- email,- password,- setPassword,- setStep-}: Props) => {+export const PasswordStep = ({ providerAuthToken, email, password, setPassword }: Props) => {const [isLoading, setIsLoading] = useState(false);const { t } = useTranslation();const router = useRouter();@@ -169,12 +162,6 @@ export const PasswordStep = ({});if (isCliLoginSuccessful && isCliLoginSuccessful.success) {- if (isCliLoginSuccessful.mfaEnabled) {- // case: login requires MFA step- setStep(2);- setIsLoading(false);- return;- }const cliUrl = `http://127.0.0.1:${callbackPort}/`;// case: organization ID is present from the provider auth token -- select the org and use the new jwt token in the CLI, then navigate to the org@@ -237,16 +224,6 @@ export const PasswordStep = ({if (loginAttempt && loginAttempt.success) {// case: login was successful-- if (loginAttempt.mfaEnabled) {- // TODO: deal with MFA- // case: login requires MFA step- setIsLoading(false);- setStep(2);- return;- }-- // case: login does not require MFA stepsetIsLoading(false);createNotification({text: "Successfully logged in",