From 084d33370fea285e30a02c3bed3af1f8c56fbd78 Mon Sep 17 00:00:00 2001 From: Chris Mann Date: Tue, 25 Jul 2023 09:05:03 +0200 Subject: [PATCH] Fixed Change Password Bug --- gpas.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpas.go b/gpas.go index 5bf1a05..31cc7bd 100644 --- a/gpas.go +++ b/gpas.go @@ -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,