LDAP mailTag fix

This commit is contained in:
root 2019-08-21 14:41:35 +02:00
parent 6beac55826
commit de15ba15da

View file

@ -187,9 +187,9 @@ if (LdapStrategy) {
return { return {
id: user.id, id: user.id,
username: user.username, username: profile[config.ldap.uidTag],
name: profile[config.ldap.nameTag], name: profile[config.ldap.nameTag],
email: profile.mail, email: profile[config.ldap.mailTag],
role: user.role role: user.role
}; };
@ -205,7 +205,7 @@ if (LdapStrategy) {
id: userId, id: userId,
username: profile[config.ldap.uidTag], username: profile[config.ldap.uidTag],
name: profile[config.ldap.nameTag], name: profile[config.ldap.nameTag],
email: profile.mail, email: profile[config.ldap.mailTag],
role: config.ldap.newUserRole role: config.ldap.newUserRole
}; };
} else { } else {