Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.

Post Membership Verification Delegate

edited April 2009 in Vanilla 1.0 Help
Hi,

I am auto approving new users.

Once they enter all the login info, and if that info is valid, I want to call a function.

When I use this: $Context->AddToDelegate('ApplyForm', 'PostCreateUser', 'MyFuntion');....MyFunction is called even if the login info was invalid(Say, the use did not agree to the terms or the captcha was wrong)

So the question is, which delegate to use if I want to first make sure that all the info entered was verified?

Thanks,
Abhishek

Comments

  • Works now...inside the function, this check was needed:

    if ($ApplyForm->PostBackValidated && $ApplyForm->Applicant->UserID > 0)
    {
    //do something...
    }
Sign In or Register to comment.