Do not add empty mailclient claim unless requested
This commit is contained in:
@@ -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')) {
|
||||
|
||||
Reference in New Issue
Block a user