sending mail to the prescripteur when beneficiary is delete

This commit is contained in:
Nicolas CARON 2023-02-23 12:33:20 +01:00
parent 11e2375456
commit f09d9d0a16
1 changed files with 4 additions and 2 deletions

View File

@ -541,8 +541,10 @@ func (h *ApplicationHandler) AgendaDeleteSubscribeEvent(w http.ResponseWriter, r
}
data := map[string]any{
"key": r.FormValue("motif"),
"user": current_user_claims["email"],
"motif": r.FormValue("motif"),
"user": current_user_claims["first_name"].(string) + " " + current_user_claims["last_name"].(string),
"subscriber": fmt.Sprintf("http://localhost:9000/app/beneficiaries/%s", subscribeid),
"link": fmt.Sprintf("http://localhost:9000/app/agenda/%s", eventId),
}
// récupérer l'adresse mail de l'utilisateur qui a créé l'événement