Refactoring

This commit is contained in:
Chris Mann 2023-07-26 09:16:39 +02:00
parent e6b6e50547
commit 4c1f779e47

View file

@ -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)