Eleven Years of Service
Posts: 177
Threads: 32
Points: 83.75€
Invite only registration 02-23-2017, 11:45 AM
#1
Hello, I've been wondering how I would go about making my website invite only. What I mean by that is when you go to the webpage you'll be greeted with a Login page and if you don't have an account you Register (obviously), but when you register on the site it asks you for an invitation code and if you don't have one you can't register. Also if at all possible I would also want to give users 3 codes they can give to other people and so on and so fourth. I have looked everywhere online for days trying to find how to do this but have come up with nothing (probably also because I'm a noob web developer), have help would be appreciated.
•
Nine Years of Service
Posts: 2,932
Threads: 148
Points: 95.34€
RE: Invite only registration 02-23-2017, 11:51 AM
#2
Just link it to a database? Wouldn't be to hard, add 3 columns in your user table, inv_code1, inv_code2... and when a user tries to sign-up check if the key is found in the database? For generating the keys you could either use your own algorithm or use an existing one, a personal one would be best in terms of security (if you know a little crypto) but I'm sure people here can help you explain that.
~~ Might be back? ~~
•
Ten Years of Service
Posts: 1,310
Threads: 66
Points: 433€
RE: Invite only registration 02-23-2017, 11:03 PM
#6
If you have a website and know PHP, SQL, ... it's pretty simple to figure out on your own.
•