From 692c7681c1f58099a253ec2f0574040555aa79f4 Mon Sep 17 00:00:00 2001 From: Pancakes Date: Sun, 27 Apr 2025 12:03:34 -0400 Subject: [PATCH] Fix handleAdminSearch --- api/endpoints.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/endpoints.go b/api/endpoints.go index 14b34a4..dae8865 100644 --- a/api/endpoints.go +++ b/api/endpoints.go @@ -890,7 +890,7 @@ func handleAdminSearch(w http.ResponseWriter, r *http.Request) { return } - username := r.PostFormValue("username") + username := r.URL.Query().Get("username") // this does a quick call to make sure the username exists on the server before allowing the rest of the code to run // this calls error value 404 (StatusNotFound) if there's no data; this means the username does not exist in the server