View Full Version : Password with one time use
SATitan
02-02-2008, 12:20 PM
My question is really two questions:
1) How can you make a password prompt without a popup?
2) I'm pretty clear with how to password protect an application, but I'm trying to figure out if there is a way to make passwords usable only once?
What I want to do is to have an array of passwords, that go invalid once they're used.
Any advice?
RizlaUK
02-02-2008, 01:12 PM
1) How can you make a password prompt without a popup?
if you dont want a popup then use some input objects and a button and hide them after use, or have a login/password page
2) I'm pretty clear with how to password protect an application, but I'm trying to figure out if there is a way to make passwords usable only once?
store the passwords in a text file (each one on a new line) and read the file to a table, use a for loop to check the password entered by the user against the ones in the table, if/when a match is found then remove that table index and write the table back to the same.
EDIT: I would advise encrypting the text file or passwords
TimeSurfer
02-02-2008, 01:25 PM
either that or use mysql.
RizlaUK
02-02-2008, 01:32 PM
either that or use mysql.
im working on a application registration system that uses mysql, just getting my head round the php part then its good to go
TimeSurfer
02-02-2008, 01:50 PM
nice ;) let me know when you finish that.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.