This commit is contained in:
Pierre-Olivier Mercier
2018-12-30 12:52:34 +01:00
parent 1a8301657c
commit 1d3ad672cb
29 changed files with 67 additions and 11361 deletions

View File

@@ -112,10 +112,10 @@ func lostPassword(w http.ResponseWriter, r *http.Request) {
// Send the email
m := gomail.NewMessage()
m.SetHeader("From", "noreply@qarnot-computing.net")
m.SetHeader("From", "noreply@nemunai.re")
m.SetHeader("To", email)
m.SetHeader("Subject", "SSO qarnot.net: password recovery")
m.SetBody("text/plain", "Hello " + cn + "!\n\nSomeone, and we hope it's you, requested to reset your account password. \nIn order to continue, go to:\nhttps://login.qarnot.net/reset?l=" + r.PostFormValue("login") + "&t=" + token + "\n\nBest regards,\n-- \nQarnot SSO")
m.SetHeader("Subject", "SSO nemunai.re: password recovery")
m.SetBody("text/plain", "Hello " + cn + "!\n\nSomeone, and we hope it's you, requested to reset your account password. \nIn order to continue, go to:\nhttps://ldap.nemunai.re/reset?l=" + r.PostFormValue("login") + "&t=" + token + "\n\nBest regards,\n-- \nnemunai.re SSO")
// Using local sendmail: delegate to the local admin sys the responsability to transport the mail
s := gomail.SendFunc(func(from string, to []string, msg io.WriterTo) error {