G Pas
This commit is contained in:
parent
01601a3842
commit
568f9f1f5a
2 changed files with 2 additions and 2 deletions
2
gpas.go
2
gpas.go
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue