Handle multiple mail values

This commit is contained in:
Chris Mann 2023-07-27 22:02:07 +02:00
parent 418a8238c6
commit 4c660cad12

View file

@ -39,7 +39,7 @@ func handleUserMail(w http.ResponseWriter, r *http.Request) {
err = login.conn.Modify(modifyRequest)
if err != nil {
http.Error(w, fmt.Sprintf("Error adding the email: %s", err), http.StatusInternalServerError)
http.Error(w, fmt.Sprintf("Error adding the email: %v", modifyRequest), http.StatusInternalServerError)
return
}
} else if action == "Delete" && index != "" {