Working on signup workfow
This commit is contained in:
parent
58efdd2fc6
commit
22603452cf
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
||||||
addReq.Attribute("objectClass", []string{"top", "account", "simpleSecurityObject"})
|
addReq.Attribute("objectClass", []string{"top", "account", "simpleSecurityObject"})
|
||||||
addReq.Attribute("uid", []string{user.UID})
|
addReq.Attribute("uid", []string{user.UID})
|
||||||
addReq.Attribute("userPassword", []string{suggestPassword()})
|
addReq.Attribute("userPassword", []string{suggestPassword()})
|
||||||
addReq.Attribute("seeAlso", []string{config.UserNameAttr + "=" + user.UID + "," + config.InvitationBaseDN})
|
addReq.Attribute("seeAlso", []string{config.UserNameAttr + "=" + user.UID + "," + config.UserBaseDN})
|
||||||
err = ldapConn.Add(addReq)
|
err = ldapConn.Add(addReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("passwordLost 83 : %v", err)
|
log.Printf("passwordLost 83 : %v", err)
|
||||||
|
|
Loading…
Reference in a new issue