Merged the 2 validate methods in FormField (still a draft).

This commit is contained in:
Relintai 2020-12-04 15:10:38 +01:00
parent f9dcdbb905
commit f5441645fa

View File

@ -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<std::string> validate_report(Request *request);
virtual bool validate(Request *request, std::vector<std::string> *errors);
FormField();
virtual ~FormField();