Skip to content

Commit 3491f97

Browse files
committed
LDAP auth use email if provided
1 parent 72a0e90 commit 3491f97

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ if (config.ldap) {
129129
id: 'LDAP-' + user.uidNumber,
130130
username: user.uid,
131131
displayName: user.displayName,
132-
emails: [],
132+
emails: user.mail ? [user.mail] : [],
133133
avatarUrl: null,
134134
profileUrl: null,
135135
provider: 'ldap',

0 commit comments

Comments
 (0)