diff --git a/model-user.go b/model-user.go index 305fcd9..6eefd6d 100644 --- a/model-user.go +++ b/model-user.go @@ -63,6 +63,7 @@ func get(user User, config *ConfigFile, ldapConn *ldap.Conn) (*User, error) { SN: searchRes.Entries[0].GetAttributeValue("sn"), UID: searchRes.Entries[0].GetAttributeValue("uid"), CN: searchRes.Entries[0].GetAttributeValue("cn"), + Mail: searchRes.Entries[0].GetAttributeValue("mail"), CanAdmin: strings.EqualFold(user.DN, config.AdminAccount), CanInvite: true, UserEntry: userEntry,