Hi,
I have a custom registration script which is using XF's registration service.
a) I'm using XF's username+email validator, XF's filterer cleanString() and then passing that to setFromInput() and validate(). Is that sufficient for validation/sanitation of input or do I need to further check/sanitise before passing it to the service? I'd do that manually but I believe the reg service already takes care of this in the backend?
b) By default it sets privacy_policy_accepted and terms_accepted as true so the user never gets the chance to consent. How can I mark those two as false on registration?
Thanks in advance.
I have a custom registration script which is using XF's registration service.
a) I'm using XF's username+email validator, XF's filterer cleanString() and then passing that to setFromInput() and validate(). Is that sufficient for validation/sanitation of input or do I need to further check/sanitise before passing it to the service? I'd do that manually but I believe the reg service already takes care of this in the backend?
b) By default it sets privacy_policy_accepted and terms_accepted as true so the user never gets the chance to consent. How can I mark those two as false on registration?
Thanks in advance.