This commit is contained in:
Max Peintner
2025-05-28 11:47:42 +02:00
parent 7ea2103b57
commit 0818661496
3 changed files with 11 additions and 4 deletions

View File

@@ -64,6 +64,13 @@
"description": "An error occurred while trying to link your account."
}
},
"ldap": {
"title": "LDAP Login",
"description": "Enter your LDAP credentials.",
"username": "Username",
"password": "Password",
"submit": "Continue"
},
"mfa": {
"verify": {
"title": "Verify your identity",

View File

@@ -1,5 +1,5 @@
import { DynamicTheme } from "@/components/dynamic-theme";
import { UsernamePasswordForm } from "@/components/username-password-form";
import { LDAPUsernamePasswordForm } from "@/components/ldap-username-password-form";
import { getServiceUrlFromHeaders } from "@/lib/service-url";
import { getBrandingSettings, getDefaultOrg } from "@/lib/zitadel";
import { Organization } from "@zitadel/proto/zitadel/org/v2/org_pb";
@@ -44,11 +44,11 @@ export default async function Page(props: {
<h1>{t("title")}</h1>
<p className="ztdl-p">{t("description")}</p>
<UsernamePasswordForm
<LDAPUsernamePasswordForm
idpId={idpId}
requestId={requestId}
organization={organization} // stick to "organization" as we still want to do user discovery based on the searchParams not the default organization, later the organization is determined by the found user
></UsernamePasswordForm>
></LDAPUsernamePasswordForm>
</div>
</DynamicTheme>
);

View File

@@ -22,7 +22,7 @@ type Props = {
idpId: string;
};
export function UsernamePasswordForm({
export function LDAPUsernamePasswordForm({
organization,
requestId,
idpId,