Expose twoFactorAuthenticationEnabled state of users via user directory
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user