Refactoring
This commit is contained in:
parent
e6b6e50547
commit
4c1f779e47
1 changed files with 3 additions and 3 deletions
|
@ -91,9 +91,9 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
|
|||
if err != nil {
|
||||
log.Printf(fmt.Sprintf("passwordLost 83 : %v", err))
|
||||
log.Printf(fmt.Sprintf("passwordLost 84 : %v", user))
|
||||
// log.Printf(fmt.Sprintf("passwordLost 85 : %v", searchRes.Entries[0]))
|
||||
// For some reason I get here even if the entry exists already
|
||||
return err
|
||||
// // log.Printf(fmt.Sprintf("passwordLost 85 : %v", searchRes.Entries[0]))
|
||||
// // For some reason I get here even if the entry exists already
|
||||
// return err
|
||||
}
|
||||
}
|
||||
err = passwd(user, config, ldapConn)
|
||||
|
|
Loading…
Reference in a new issue