17.06.2012, 15:21
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).
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).