Skip to content
Snippets Groups Projects
Commit 1e0cf3c0 authored by Eric Chiang's avatar Eric Chiang
Browse files

connector/ldap: default email_verified to true

parent 9e6d8689
Branches
Tags
No related merge requests found
...@@ -278,6 +278,9 @@ func (c *ldapConnector) identityFromEntry(user ldap.Entry) (ident connector.Iden ...@@ -278,6 +278,9 @@ func (c *ldapConnector) identityFromEntry(user ldap.Entry) (ident connector.Iden
if ident.Email = getAttr(user, c.UserSearch.EmailAttr); ident.Email == "" { if ident.Email = getAttr(user, c.UserSearch.EmailAttr); ident.Email == "" {
missing = append(missing, c.UserSearch.EmailAttr) missing = append(missing, c.UserSearch.EmailAttr)
} }
// TODO(ericchiang): Let this value be set from an attribute.
ident.EmailVerified = true
if c.UserSearch.NameAttr != "" { if c.UserSearch.NameAttr != "" {
if ident.Username = getAttr(user, c.UserSearch.NameAttr); ident.Username == "" { if ident.Username = getAttr(user, c.UserSearch.NameAttr); ident.Username == "" {
missing = append(missing, c.UserSearch.NameAttr) missing = append(missing, c.UserSearch.NameAttr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment