Beispiel #1
0
function leonardo_check_password($password, $hash)
{
    return leonardo_check_hash($password, $hash);
    // this is the joomla way
    /*
    $parts	= explode( ':', $hash );
    $crypt	= $parts[0];
    $salt	= @$parts[1];
    
    
    $testcrypt = JUserHelper::getCryptedPassword($password, $salt);
    
    
    if ($crypt == $testcrypt) {
    	return true;
    } else {
    	return false;
    }
    */
}
Beispiel #2
0
function leonardo_check_password($password, $hash)
{
    return leonardo_check_hash($password, $hash);
}