Hi,
I am running a custom script outside XF to register users. It works however there's a issue. If for any reason the registration fails, I cannot show the user any message regarding the error.
Taken from the default controller:
$errors is an object that contains protected properties which I cannot access in order to read the actual error and return to the user. For example if a username is already in use etc. Is there a class which parses this? What is the right way of doing it?
Any ideas?
Thanks in advance
I am running a custom script outside XF to register users. It works however there's a issue. If for any reason the registration fails, I cannot show the user any message regarding the error.
Taken from the default controller:
PHP:
if (!$registration->validate($errors)){
# blah blah
}
$errors is an object that contains protected properties which I cannot access in order to read the actual error and return to the user. For example if a username is already in use etc. Is there a class which parses this? What is the right way of doing it?
Any ideas?
Thanks in advance