User Invites and Crowd auth

Did you try specifying invite code in Discourse settings?