Fixed Change Password Bug
This commit is contained in:
parent
53a92e2f5c
commit
084d33370f
1 changed files with 1 additions and 1 deletions
2
gpas.go
2
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]))
|
log.Printf(fmt.Sprintf("passwordLost (Check existing invitation) : %v", searchRes.Entries[0]))
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(searchRes.Entries == 0) {
|
if len(searchRes.Entries) == 0 {
|
||||||
/* Add the invitation */
|
/* Add the invitation */
|
||||||
addReq := ldap.NewAddRequest(
|
addReq := ldap.NewAddRequest(
|
||||||
user.DN,
|
user.DN,
|
||||||
|
|
Loading…
Reference in a new issue