Hi,
in general you can't do this with Easy Profile.
_____________________________________
To do this you can:
ALTERNATIVE 1
Easy Profile extends Joomla User profile, so registration/edit profile pages are the same of Joomla and works with all Joomla Users Plugin. You can search a plugin to do this on Joomla extensions directory, should work.
ALTERNATIVE 2 (require PHP and Joomla Knowledge)
You need to develop a plugin
You can create a Text field for your code and when user register his account you can launch a plugin to check code and add to usergroup
here docs with skeleton plugin:
https://www.easy-profile.com/docs/44-triggers.html
You can write something like this:
triggerProfileUpdate($user,&$data,$changed,$isNew){
if($isNew){
$code=$data['text_code_alias_field'];
// CHECK YOUR CODE
if($valid){
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
JsnHelper::addUserToGroup($user,$group_id);
}
}
}