I'm using register-plus-redux and press permit core plugins. The first plugin allows me to add invitation code box in registration form and the second one lets me create custom roles. What I like to do is to get the invitation code that the user has entered and then assign him to a specific role. How can I modify the register-plus-redux plugin to achieve my goal?
Links to plugins:
I appreciate your help.