From 011dc1362af7eae467ce457d84d4e75d1131361d Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 30 Dec 2020 12:50:58 -0500 Subject: [PATCH] API Endpoints for Verifications and Pending. --- site-api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site-api.go b/site-api.go index c81ec4f..f86b4f3 100644 --- a/site-api.go +++ b/site-api.go @@ -162,6 +162,9 @@ func getVerifications(w http.ResponseWriter, r *http.Request) { var v []Verification for _, file := range files { info := strings.Split(file, "-") + if len(info) < 3 { + continue + } var ver Verification ver.UserID = info[0] ver.Username = info[1]