Skip to content

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

add auth header to ldap login page

Scott Wilson968bc10ff6c6
diff --git a/frontend/src/components/auth/AuthPageHeader.tsx b/frontend/src/components/auth/AuthPageHeader.tsx
index a07e0afdb7..3b45a436ce 100644
--- a/frontend/src/components/auth/AuthPageHeader.tsx
+++ b/frontend/src/components/auth/AuthPageHeader.tsx
@@ -4,7 +4,7 @@ import { Link } from "@tanstack/react-router";
type Props = { children?: ReactNode };
export const AuthPageHeader = ({ children }: Props) => (
- <header className="relative z-10 flex w-full items-center justify-between pt-4">
+ <header className="relative z-10 flex h-16 w-full items-center justify-between">
<Link to="/">
<img alt="Infisical" src="/images/logotransparent.png" className="h-5" />
</Link>
diff --git a/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx b/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
index 2ea91277dc..15ad41c2ec 100644
--- a/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
+++ b/frontend/src/pages/auth/LoginLdapPage/LoginLDAPPage.tsx
@@ -5,6 +5,7 @@ import { Link, useNavigate } from "@tanstack/react-router";
import { AuthPageBackground } from "@app/components/auth/AuthPageBackground";
import { AuthPageFooter } from "@app/components/auth/AuthPageFooter";
+import { AuthPageHeader } from "@app/components/auth/AuthPageHeader";
import { createNotification } from "@app/components/notifications";
import {
Button,
@@ -73,7 +74,7 @@ export const LoginLdapPage = () => {
};
return (
- <div className="relative flex max-h-screen min-h-screen flex-col justify-center overflow-y-auto bg-linear-to-tr from-card via-bunker-900 to-card px-6">
+ <div className="relative flex max-h-screen min-h-screen flex-col justify-center overflow-y-auto bg-linear-to-tr from-card via-bunker-900 to-card px-4">
<AuthPageBackground />
<Helmet>
<title>{t("common.head-title", { title: t("login.title") })}</title>
@@ -82,16 +83,12 @@ export const LoginLdapPage = () => {
<meta property="og:title" content={t("login.og-title") ?? ""} />
<meta name="og:description" content={t("login.og-description") ?? ""} />
</Helmet>
+ <AuthPageHeader>
+ <Button asChild>
+ <Link to="/signup">Sign Up</Link>
+ </Button>
+ </AuthPageHeader>
<div className="relative z-10 my-auto flex flex-col items-center py-10">
- <Link to="/">
- <div className="mb-4 flex justify-center">
- <img
- src="/images/gradientLogo.svg"
- style={{ height: "90px", width: "120px" }}
- alt="Infisical logo"
- />
- </div>
- </Link>
<form onSubmit={handleSubmission} className="mx-auto w-full max-w-sm">
<UnstableCard className="w-full items-stretch gap-0 p-6">
<UnstableCardHeader className="mb-4 gap-4">