PDA

View Full Version : Anyone familiar with vb4?



forcerhpool
06-01-2011, 07:02 PM
I am trying to get this vb auth script working with code igniter;
http://codeigniter.com/wiki/Vb_auth/

i think it's using a slightly outdated version of the cookie/auth/password hashing as it wont show users logged in even when they are.


function is_valid_cookie_user($userid, $password)
{
$sql = "
SELECT username
FROM {$this->dbprefix}user
WHERE
userid = " . $this->db->escape($userid) . " and
md5(concat(password,'".$this->license."')) = '$password'
";

now there is a COOKIE_SALT in functions.php which is used along with the md5 pass and the salt in db.

does anyone know how to integrate the correct hash in this?