~muirrum/gompei-verification

81f954eb9963c633593c722d7172cbe2b6aa17f1 — Cara Salter 1 year, 5 months ago a2e61c5 master
meta: Add privacy policy
1 files changed, 7 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +7 -0
@@ 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)