Posts: 569
Threads: 105
Joined: Mar 2011
Reputation:
0
17.06.2012, 15:07
(
Последний раз редактировалось TheBluec0de; 17.06.2012 в 17:39.
)
dosent login... i hashed the password
edit
Posts: 1,662
Threads: 199
Joined: Dec 2011
Reputation:
0
Indent the script first please, so it is actually readable
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Your code makes no sense whatsoever. You're in fact just comparing hashed inputtext with plain inputtext, which obviously isn't going to work out.
You should hash the input password first, then send the query with the hashed password. Then you store the result and see if there are any rows returned. If there is a row, then the passwords matched and you can proceed to login. If there's no row, the passwords didn't match (obviously).