From 21c15a0d397b144e17a07c5f6fc6a6ae669b2f1b Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 9 Oct 2019 12:30:20 +0200 Subject: simply returning on invalid username --- src/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/http.go') diff --git a/src/http.go b/src/http.go index fb01aa2..2c62eaf 100644 --- a/src/http.go +++ b/src/http.go @@ -68,7 +68,7 @@ func registerPostHandler(w http.ResponseWriter, r *http.Request) { } if !isValid(username) { - indexHandler(w, r) + return } // add the new username to the list of usernames -- cgit 1.4.1