Delete password after first use
Posted: Mon Feb 27, 2012 6:58 am
Hello all,
This is my first post here.
After searching the web and nothing found, I decided to open a topic on this forum.
I want to code a little trick, as following:
- I want to store 50 random passwords in a database.
- I will create an index.php, where the users having ONE of the 50 passwords can connect -> index.php has only a text input and a submit button. if you input the correct password received from me, you have access to a form in order to place some some kind of sport bet.
- the challenge comes up when I thought that the password should be used only ONE time - I mean, after the user fills the form and submit, the data are stored in DB and the random password should be deleted, in order to deny other entries using that password.
So my question: - is there a way to delete the random password after the usage ? Or to be disabled in order to deny another entries using it.
Thanks in advance.
This is my first post here.
After searching the web and nothing found, I decided to open a topic on this forum.
I want to code a little trick, as following:
- I want to store 50 random passwords in a database.
- I will create an index.php, where the users having ONE of the 50 passwords can connect -> index.php has only a text input and a submit button. if you input the correct password received from me, you have access to a form in order to place some some kind of sport bet.
- the challenge comes up when I thought that the password should be used only ONE time - I mean, after the user fills the form and submit, the data are stored in DB and the random password should be deleted, in order to deny other entries using that password.
So my question: - is there a way to delete the random password after the usage ? Or to be disabled in order to deny another entries using it.
Thanks in advance.