SELECT
SHA1(CONCAT(users.salt, '$password')) = users.password
FROM users
WHERE
users.username = '$username'
If $username
exist this will return true, doesn't matter what password you put in =/
iI only want it to return true if username AND password is correct
What i want is, I want it to take the salt and password, rehash it with sha1 and compare it with user input
What am i doing wrong?