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:
10
util/util.go
10
util/util.go
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user