From 15bab1fcfb04ba4649d28fa08ca253565713eca0 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Fri, 20 Aug 2021 08:59:08 -0300 Subject: [PATCH] use the domain in the secret hmac. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a4841f4..4a190e9 100644 --- a/main.go +++ b/main.go @@ -78,7 +78,7 @@ func main() { router.Path("/grab").HandlerFunc( func(w http.ResponseWriter, r *http.Request) { - name := []byte(r.FormValue("name")) + name := []byte(r.FormValue("name") + "@" + s.Domain) mac := hmac.New(sha256.New, []byte(s.Secret)) mac.Write(name)