fix linking

This commit is contained in:
peintnermax
2024-08-21 11:36:28 +02:00
parent bcab9bebd0
commit ec381f7e36

View File

@@ -151,8 +151,6 @@ export default async function Page({
// search for potential user via username, then link
if (options?.isLinkingAllowed) {
const userId = "";
const foundUser = await listUsers(idpInformation.userName).then(
(response) => {
return response.result ? response.result[0] : null;
@@ -166,7 +164,7 @@ export default async function Page({
userId: idpInformation.userId,
userName: idpInformation.userName,
},
userId,
foundUser.userId,
).catch((error) => {
return (
<DynamicTheme branding={branding}>