mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 08:23:16 +00:00
fix linking
This commit is contained in:
@@ -151,8 +151,6 @@ export default async function Page({
|
|||||||
|
|
||||||
// search for potential user via username, then link
|
// search for potential user via username, then link
|
||||||
if (options?.isLinkingAllowed) {
|
if (options?.isLinkingAllowed) {
|
||||||
const userId = "";
|
|
||||||
|
|
||||||
const foundUser = await listUsers(idpInformation.userName).then(
|
const foundUser = await listUsers(idpInformation.userName).then(
|
||||||
(response) => {
|
(response) => {
|
||||||
return response.result ? response.result[0] : null;
|
return response.result ? response.result[0] : null;
|
||||||
@@ -166,7 +164,7 @@ export default async function Page({
|
|||||||
userId: idpInformation.userId,
|
userId: idpInformation.userId,
|
||||||
userName: idpInformation.userName,
|
userName: idpInformation.userName,
|
||||||
},
|
},
|
||||||
userId,
|
foundUser.userId,
|
||||||
).catch((error) => {
|
).catch((error) => {
|
||||||
return (
|
return (
|
||||||
<DynamicTheme branding={branding}>
|
<DynamicTheme branding={branding}>
|
||||||
|
|||||||
Reference in New Issue
Block a user