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 {
id: user.id,
username: user.username,
username: profile[config.ldap.uidTag],
name: profile[config.ldap.nameTag],
email: profile.mail,
email: profile[config.ldap.mailTag],
role: user.role
};
@ -205,7 +205,7 @@ if (LdapStrategy) {
id: userId,
username: profile[config.ldap.uidTag],
name: profile[config.ldap.nameTag],
email: profile.mail,
email: profile[config.ldap.mailTag],
role: config.ldap.newUserRole
};
} else {