Skip to content

Commit

Permalink
Merge pull request #733 from ericchiang/ldap-email-verified
Browse files Browse the repository at this point in the history
connector/ldap: default email_verified to true
  • Loading branch information
ericchiang committed Dec 12, 2016
2 parents c77cb86 + 1e0cf3c commit c11ee4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions connector/ldap/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,9 @@ func (c *ldapConnector) identityFromEntry(user ldap.Entry) (ident connector.Iden
if ident.Email = getAttr(user, c.UserSearch.EmailAttr); ident.Email == "" {
missing = append(missing, c.UserSearch.EmailAttr)
}
// TODO(ericchiang): Let this value be set from an attribute.
ident.EmailVerified = true

if c.UserSearch.NameAttr != "" {
if ident.Username = getAttr(user, c.UserSearch.NameAttr); ident.Username == "" {
missing = append(missing, c.UserSearch.NameAttr)
Expand Down

0 comments on commit c11ee4d

Please sign in to comment.