Fix signup risk of enumeration to test emails

* Now, if a known email is used, it will still return the same result
* If a known email is used, we will ping the email address to know that
there was a signup attempt
This commit is contained in:
🐙PiperYxzzy
2022-05-01 13:23:51 +02:00
parent dd8d2a677d
commit 0af09dcc01
3 changed files with 59 additions and 25 deletions

View File

@@ -2,6 +2,7 @@ package util
import (
"crypto/rand"
"fmt"
"github.com/google/uuid"
)
@@ -23,3 +24,12 @@ type PrincipalInfo struct {
type FailMsg struct {
Reason string `json:"reason"`
}
type NextMsg struct {
Next string `json:"nextaction"`
}
func SendEmail(title string, body string, recipient string) {
//TODO
fmt.Println("Send", title, body, "to", recipient)
}