idpId param, error msg

This commit is contained in:
Max Peintner
2025-06-02 11:00:05 +02:00
parent 0818661496
commit 2ba8311cd6
2 changed files with 2 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ export function LDAPUsernamePasswordForm({
password: values.password, password: values.password,
}) })
.catch(() => { .catch(() => {
setError("Could not verify password"); setError("Could not start LDAP flow");
return; return;
}) })
.finally(() => { .finally(() => {

View File

@@ -43,6 +43,7 @@ export async function redirectToIdp(
// redirect to LDAP page where username and password is requested // redirect to LDAP page where username and password is requested
if (provider === "ldap") { if (provider === "ldap") {
params.set("idpId", idpId);
redirect(`/idp/ldap?` + params.toString()); redirect(`/idp/ldap?` + params.toString());
} }