diff --git a/website/src/components/User/UserPage.astro b/website/src/components/User/UserPage.astro index 6155fcf385..7589618c54 100644 --- a/website/src/components/User/UserPage.astro +++ b/website/src/components/User/UserPage.astro @@ -8,25 +8,21 @@ import { getAccessToken } from '../../utils/getAccessToken'; import { urlForKeycloakAccountPage } from '../../utils/urlForKeycloakAccountPage'; import ErrorBox from '../common/ErrorBox.tsx'; import DashiconsGroups from '~icons/dashicons/groups'; +import IconoirOpenNewWindow from '~icons/iconoir/open-new-window'; import MaterialSymbolsLightPersonOutline from '~icons/material-symbols-light/person-outline'; const session = Astro.locals.session!; const user = session.user!; // page only accessible if user is logged in const username = user.username!; // all users must have a username const name = user.name; - const accessToken = getAccessToken(session)!; - const logoutUrl = new URL(Astro.request.url); logoutUrl.pathname = routes.logout(); - const keycloakClient = await KeycloakClientManager.getClient(); - const keycloakLogoutUrl = keycloakClient!.endSessionUrl({ post_logout_redirect_uri: logoutUrl.href, }); const accountPageUrl = await urlForKeycloakAccountPage(keycloakClient!); - const groupOfUsersResult = await GroupManagementClient.create().getGroupsOfUser(accessToken); --- @@ -42,7 +38,6 @@ const groupOfUsersResult = await GroupManagementClient.create().getGroupsOfUser( }} /> -

{name}

@@ -50,7 +45,6 @@ const groupOfUsersResult = await GroupManagementClient.create().getGroupsOfUser(

-
Edit account information + Edit account information + +
-
My groups