Skip to content
Snippets Groups Projects
Commit 48ca55ab authored by meskio's avatar meskio :tent:
Browse files

Let's log sending email errors

parent f8e6b041
Branches
Tags
No related merge requests found
......@@ -62,6 +62,11 @@ func (a *api) AddBatchMember(w http.ResponseWriter, req *http.Request) {
return
}
err = a.mail.sendNewMember(members[i], "/nreset/"+token)
if err != nil {
log.Printf("Can't send the pass/login reset email to %s: %v", m.Email, err)
w.WriteHeader(http.StatusInternalServerError)
return
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment