Do not add empty mailclient claim unless requested

This commit is contained in:
Johannes Zellner
2026-02-25 16:15:35 +01:00
parent 6dbd97ba14
commit 19a0f77c53

View File

@@ -551,7 +551,6 @@ async function getClaims(username, use, scope, clientId) {
picture: `https://${dashboardFqdn}/api/v1/profile/avatar/${user.id}`, // we always store as png
preferred_username: user.username,
groups: allGroups.filter(function (g) { return g.userIds.indexOf(user.id) !== -1; }).map(function (g) { return `${g.name}`; }),
mailclient: {},
};
if (clientId && scope.includes('mailclient')) {