LDAP mailTag fix
This commit is contained in:
parent
6beac55826
commit
de15ba15da
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue