Forum Moderators: coopster

Message Too Old, No Replies

Password Protect

         

ruffain

2:41 am on Dec 13, 2005 (gmt 0)

10+ Year Member



I created a form with formgen. the form works it created the database in MySQL but when i signin with a username and password it doesn't make the password relate to the user name .In other words i can use any password with the username. I would like the username and the password to work togather so you can't use just any old password with the user id. Thanks in advance for any help.

coopster

5:00 pm on Dec 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, ruffain.

You need to look at the code where the authentication routine is and make certain that it is checking the password to the userid correctly.

ruffain

5:55 pm on Dec 14, 2005 (gmt 0)

10+ Year Member



Thanks coopster
Where would i find this code at? On the page that has the form on it? and how would i know if the code is correct?

coopster

6:20 pm on Dec 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I have no idea where you will find it. Or even if formgen is a php-based process. I'm not familiar with it at all. How will you know if the code is correct? You'll have to analyze the code ;)

Follow it through, from the moment the form method is invoked until you can see where the userid is being authenticated.

ruffain

9:17 pm on Dec 14, 2005 (gmt 0)

10+ Year Member



Yes it is a PHPformgen, i looked at the code in the form page but i didn't see anything that would make the password unique to the user ID. I wounder if you could make the data base do that? are do you need to write a script for that? Larry