Topic: Unusual login system
I'm a complete beginner at Rails, I've completed lots of tutorials but I've set myself a small task and I'm not certain how to begin due to the slightly unusual setup.
I need to create a login where rather than a password users enter a code they have been given. The complication is that multiple people may be given the same code. Each code would have a maximum number of users.
- Admin generates or adds a code to the database and sets the number of users it will be available to, say 10.
- User submits the code and some personal details (which are recorded) and views the site
- User may re-enter the site using the same method
- After 10 users have submitted the code it is invalid
I'll also need an admin page for the admin to generate or manually enter the code and it's use limit but that seems simple enough.
What do you think, does this sound easy? What's the best place to begin?