Expose twoFactorAuthenticationEnabled state of users via user directory

This commit is contained in:
Johannes Zellner
2022-08-02 08:54:27 +02:00
parent d5e5b64df2
commit afc70ac332

View File

@@ -173,6 +173,7 @@ async function userSearch(req, res, next) {
displayname: displayName,
givenName: firstName,
username: user.username,
twoFactorAuthenticationEnabled: user.twoFactorAuthenticationEnabled || undefined,
samaccountname: user.username, // to support ActiveDirectory clients
// memberof: user.groupIds.map(function (gid) { return `cn=${gid},ou=groups,dc=cloudron`; }) <- use cn=group.name instead of id
}