You need to describe how Moodle works and the purpose of the "code or number" in that system.
In Nabble you can set things so that only specified email addresses may access your forum by preventing those in the "Anyone" and "Registered" groups from viewing the forum and adding just those email addresses you want to the "Members" group. When invited people register they get access by virtue of being already members..
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.