This topic is locked
[SOLVED]

 Code security manual confirmation

10/28/2006 6:27:16 PM
PHPRunner General questions
S
sikkle author

Hi there,
i try to figure where i can deal with this little situation.
I'm not sure about where is the right spot to do it.
So, on my application, when the user create an account, i have to send over the mail for security reason a personnal code in registred mail (So not by email but regular post office service).
When people received the envelope with code, they have to log to their account for the first time. Before that they just not have to right to do it again for security reason.
So i have a field in my database ("SecurityCode") with a random number generated when the account is created.
So there we go :
I need to each time someone login on, before process to the website, if the account got a number in the ("SecurityCode") they have to input the code, if they input the right code, the code have to be delete and the login permitted. So if the last time they log ing, they already do the process for the checkup, they don't have to do it another time.
So does someone have a solution for this and where can i put the solution in a php application made by PHP Runner 3.1.
Thanks for help.
sikk.

kujox 10/29/2006

I would approach this by having an activated field in the table.
When they login, enter some code in the after succesful login event and do a check on to see if this field is true or false, if it is false then direct them to another page where they can enter the security code and activate the account