This commit is contained in:
Chris Mann 2023-07-23 13:39:05 +02:00
parent 01601a3842
commit 568f9f1f5a
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@ func passwordLost(user User, config *ConfigFile, ldapConn *ldap.Conn) error {
func passwordFound(user User, config *ConfigFile, ldapConn *ldap.Conn) (string, error) {
l, err := openLdap(config)
if err != nil {
return false, err
return "", err
}
if user.DN == "" && user.UID != "" {
user.DN = "uid=" + user.UID + ",ou=invitations,dc=resdigita,dc=org"

View file

@ -144,7 +144,7 @@ func handleFoundPassword(w http.ResponseWriter, r *http.Request) {
Password: codeArray[1],
DN: "uid=" + codeArray[0] + ",ou=invitations,dc=resdigita,dc=org",
}
dn, err = passwordFound(user, config, ldapConn)
user.SeeAlso, err = passwordFound(user, config, ldapConn)
if err != nil {
log.Printf("handleFoundPassword / passwordFound %v", err)
log.Printf("handleFoundPassword / passwordFound %v", err)