about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-09 12:30:20 +0200
committerEmile <hanemile@protonmail.com>2019-10-09 12:30:20 +0200
commit21c15a0d397b144e17a07c5f6fc6a6ae669b2f1b (patch)
treef2c8f8a074fa457db65667ab6f5f5edaaa035827 /src
parent53d9f842bf381cd2f83ee69c7a463e6a04939961 (diff)
simply returning on invalid username
Diffstat (limited to 'src')
-rw-r--r--src/http.go2
1 files changed, 1 insertions, 1 deletions
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