From ff24f2e7137fef91685068648ac7391dcef9fcc7 Mon Sep 17 00:00:00 2001 From: grumbulon Date: Sat, 31 Dec 2022 13:31:37 -0500 Subject: [PATCH] fix error message --- internal/api/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/auth.go b/internal/api/auth.go index e1eab2c..7b55619 100644 --- a/internal/api/auth.go +++ b/internal/api/auth.go @@ -38,7 +38,7 @@ func Login(w http.ResponseWriter, r *http.Request) { db.Where("username = ?", username).First(&result) if result.Username == "" { - http.Error(w, "User not registered", http.StatusUnauthorized) + http.Error(w, "login failed", http.StatusUnauthorized) return }