Hi I need to use LT for a project I'm working on which also requires the invite module. Invite works by sending the invitee a "token" which ends up as a hidden field on the user registration page. When they submit, invite hooks into user_insert, and based on the token, escalates permissions for that user. Unfortunately, LT takes over on the submit function of the form, and then redirects the user to some other page, so invite is rendered useless...

Any comment on how to deal with this without hacking the LT core? I can't really escalate permissions on a user who doesn't exist, so putting it before LT is not going to work, and putting it after means I get redirected away and can't find the token aymore.

Thanks,
Jacob

Comments

hunmonk’s picture

LT calls user_save(), just like the core submit function -- and that's where hook_insert is invoked, so i'm not sure what your problem is. any submitted form is going to result in a redirect -- i don't see how the workflow is fundamentally different in your case.

perhaps you can describe more clearly?

Gary Feldman’s picture

Status: Active » Postponed (maintainer needs more info)
hunmonk’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

stale. closing.