use your own webhook you leech and fix akisbug

Signed-off-by: Odyssey346 <odyssey346@disroot.org>
This commit is contained in:
Odyssey346
2022-07-29 23:51:10 +02:00
parent c19bf73077
commit 140be4e9dd
3 changed files with 23 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ func main() {
otherthings.CheckEnv()
log.Println("[HTTP] Starting server")
port := os.Getenv("SEGFAUTILITIES_PORT")
hcaptcha_site_key := os.Getenv("SEGFAUTILITIES_PORT")
hcaptcha_site_key := os.Getenv("HCAPTCHA_SITE_KEY")
tmpl := template.Must(template.ParseFiles("static/index.html"))
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
data := StaticThingy{
@@ -35,7 +35,6 @@ func main() {
tmpl_form := template.Must(template.ParseFiles("static/form.html"))
http.HandleFunc("/form/", func(w http.ResponseWriter, r *http.Request) {
data := StaticThingy{
Port: port,
HCaptchaSiteKey: hcaptcha_site_key,
}
tmpl_form.Execute(w, data)