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