Fixed Change Password Bug

This commit is contained in:
Chris Mann 2023-07-25 09:05:03 +02:00
parent 53a92e2f5c
commit 084d33370f

View file

@ -79,7 +79,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
log.Printf(fmt.Sprintf("passwordLost (Check existing invitation) : %v", searchRes.Entries[0]))
return err
}
if len(searchRes.Entries == 0) {
if len(searchRes.Entries) == 0 {
/* Add the invitation */
addReq := ldap.NewAddRequest(
user.DN,