aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2021-05-31 03:56:00 -0700
committerFChannel <>2021-05-31 03:56:00 -0700
commitb7ce42c8a9a6f458cc1537f6aeefe0b5f7ab150c (patch)
tree568e4972244ce04b50397162de1f6684a6ce18cf /main.go
parentdf34b557bb7894b82bd08dc9430d5fb76b35c3ff (diff)
you should not be able to see verify page without modkey
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 29b93fd..1942135 100644
--- a/main.go
+++ b/main.go
@@ -703,8 +703,8 @@ func main() {
http.Redirect(w, r, "/", http.StatusSeeOther)
}
} else {
- t := template.Must(template.ParseFiles("./static/verify.html"))
- t.Execute(w, "")
+ w.WriteHeader(http.StatusBadRequest)
+ w.Write([]byte("404 no path"))
}
})