So first of all im creating a login system on my website for normal users and clan users.
The concept is that people, out of our clan, that want to create a clan account can actually use the given token to do it. That means I give the people out of my clan a unique token, that only clan members get and they can use it to can access to create a clan account.
- Only clan members should have the access with the token that I gave them to create a clan account and not
anyone.
I'm using html/css with of course php to get it all working. The login system with creating a account and logging into a account actually works already for the normal users and I know how to get it working for the clan members to.
BUT: I don't know how to create the unique token that is already entered into the database and how to check if the token he entered in the form is the exactly same token in my database to gain him access to a clan account creation.
Mind:
1. The sql database is creating by using sql querry code in phpmyadmin
2. The database has ALREADY A TOKEN in the database for the clan members
3. A clan member goes on my website to create a clan account and enters the SAME TOKEN to create a clan account.
4. The TOKEN is now taken for the clan user and can't be used again or the TOKEN is for anyone that is a clan account and anyone can create a clan account with the token.
The concept is that people, out of our clan, that want to create a clan account can actually use the given token to do it. That means I give the people out of my clan a unique token, that only clan members get and they can use it to can access to create a clan account.
- Only clan members should have the access with the token that I gave them to create a clan account and not
anyone.
I'm using html/css with of course php to get it all working. The login system with creating a account and logging into a account actually works already for the normal users and I know how to get it working for the clan members to.
BUT: I don't know how to create the unique token that is already entered into the database and how to check if the token he entered in the form is the exactly same token in my database to gain him access to a clan account creation.
Mind:
1. The sql database is creating by using sql querry code in phpmyadmin
2. The database has ALREADY A TOKEN in the database for the clan members
3. A clan member goes on my website to create a clan account and enters the SAME TOKEN to create a clan account.
4. The TOKEN is now taken for the clan user and can't be used again or the TOKEN is for anyone that is a clan account and anyone can create a clan account with the token.