summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoralecdwm2016-12-14 13:24:25 +0100
committeralecdwm2016-12-14 13:24:25 +0100
commit3491f97f7e18a811e516431fa55429f015cef8c4 (patch)
treed55d077c23ba5c8229198abe096a17ca1641cea6 /lib
parent72a0e90f7d09d8a4e06a2629dcb9404eb37c64a0 (diff)
LDAP auth use email if provided
Diffstat (limited to 'lib')
-rw-r--r--lib/auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/auth.js b/lib/auth.js
index b2c787b9..4b14e42c 100644
--- a/lib/auth.js
+++ b/lib/auth.js
@@ -129,7 +129,7 @@ if (config.ldap) {
id: 'LDAP-' + user.uidNumber,
username: user.uid,
displayName: user.displayName,
- emails: [],
+ emails: user.mail ? [user.mail] : [],
avatarUrl: null,
profileUrl: null,
provider: 'ldap',