• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Automatically generating a "token" in sql querry

Zyklop

New Pleskian
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.
 
I accidently published the thresh already.
I hope someone can help me and understands my problem im having, the only problem is the creation of the Token for the clan members and how to use it.
I know how to create a login system with php, however I'm new to php and dont understand much, so please help me and tell it for dummies.

Thank you all so much, if you have any questions to solve my problem please ask them.
Have a nice day, Zyklop

btw: my english is very bad, Im sorry
 
Back
Top