mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
14 lines
310 B
Go
14 lines
310 B
Go
package main
|
|
|
|
import (
|
|
"net/http"
|
|
"net/smtp"
|
|
)
|
|
|
|
func mail(w http.ResponseWriter, r *http.Request) {
|
|
host := r.Header.Get("Host")
|
|
token := backend.getUserSecretResetToken(email)
|
|
body := "Click to reset password: " + host + "/" + token
|
|
smtp.SendMail("test.test", nil, "from@from.com", nil, []byte(body))
|
|
}
|