Skip to content

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

misc: only display recover when email login is enabled

Sheen Capadngan5a1e43be4448
diff --git a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx b/frontend/src/views/Login/components/InitialStep/InitialStep.tsx
index 69a4188270..06c4df835b 100644
--- a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx
+++ b/frontend/src/views/Login/components/InitialStep/InitialStep.tsx
@@ -352,13 +352,15 @@ export const InitialStep = ({ setStep, email, setEmail, password, setPassword }:
) : (
<div className="mt-4" />
)}
- <div className="mt-2 flex flex-row text-sm text-bunker-400">
- <Link href="/verify-email">
- <span className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">
- Forgot password? Recover your account
- </span>
- </Link>
- </div>
+ {shouldDisplayLoginMethod(LoginMethod.EMAIL) && (
+ <div className="mt-2 flex flex-row text-sm text-bunker-400">
+ <Link href="/verify-email">
+ <span className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">
+ Forgot password? Recover your account
+ </span>
+ </Link>
+ </div>
+ )}
</form>
);
};