From f5441645fa6867d57be8d8da004627c2b8216a29 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 4 Dec 2020 15:10:38 +0100 Subject: [PATCH] Merged the 2 validate methods in FormField (still a draft). --- core/form.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/form.h b/core/form.h index 72c973a..0236300 100644 --- a/core/form.h +++ b/core/form.h @@ -15,10 +15,7 @@ public: virtual std::string render(); - //checks if form field validates - virtual bool validate_check(Request *request); - //checks if form field validates, and returns human readable errorsm if any - virtual std::vector validate_report(Request *request); + virtual bool validate(Request *request, std::vector *errors); FormField(); virtual ~FormField();