@@ 4,6 4,7 @@ import (
"context"
"encoding/json"
"fmt"
+ "io"
"io/ioutil"
"net/http"
"os"
@@ 101,6 102,11 @@ func Success(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, os.Getenv("SUCCESS_URL"), http.StatusFound)
}
+func Privacy(w http.ResponseWriter, r *http.Request) {
+ io.WriteString(w, "Gompei-Verification is a project by Cara Salter (https://devcara.com) for the WPI '25 Discord Server.\n\nThe bot collects only the data strictly necessary for verification -- your Discord ID and Azure AD Home ID, and stores neither.\n\nData processing requests are irrelevant and will be ignored.")
+
+}
+
func main() {
err := godotenv.Load()
if err != nil {
@@ 131,6 137,7 @@ func main() {
http.HandleFunc("/oauth/microsoft", AzureAuth)
http.HandleFunc("/oauth/discord", DiscordAuth)
http.HandleFunc("/success", Success)
+ http.HandleFunc("/privacy", Privacy)
verifyChan = make(chan string)