I have custom validation on a form that checks a "registration code" field against a database to see if that code has been used yet, and if not it will set that code to "used". This form also registers users via the user registration add-on.
I'm having a problem where if the user registration fails because the username has already been taken, the form does not submit but the registration code gets set to "used" in the database. My guess is that since the user registration is an add-on, all the normal validation checks get verified first and then the user stuff checks run separately. I could very well be wrong though :)
Do you know of a way I can make this right so that my gform_field_validation does not update my database values until after the form is fully validated?
I think it must be happening on more than just "user name already registered". The site is live and people are trying to register and having problems, I can't imagine all of the problems were linked to duplicate user names.