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 }