Generate unique barcode for each registered user
Enable the barcode module.
Goto: admin/config/people/accounts/fields
Add a barcode field and configure as you like
Towards the bottom of: admin/config/people/accounts, Modify the email to include the barcode


Another option: Commerce Event Tickets, This sounds a lot like what you need.