View Single Post
Old 05-01-2004, 08:27 AM  
St0rm
Disabled
 
Join Date: Nov 2003
Posts: 105
Default

There seems to be a problem with the io_user_query() function:
PHP Code:
$uid io_user_id("ioFTPD");
$password "ioFTPD";
$userfile io_user_open($uid);
$usermask io_user_mask_init(UINFO_PASSWORD);
$userarray io_user_query($userfile$usermask);
print(
$userarray[0] . "<br />" io_sha1($password)); 
This code should print 2 passwords that are exactly the same, but for some reason it doesn't. The output looks like this:

6045ff757913ff59ff10ffff4f2746ff4d4d6b32
6045b1757913f659b210fceb4f2746d74d4d6b32

The second password is the correct one, which matches the password in the corresponding user file. The first password matches nothing (not even a password from the other userfiles). Am I missing something here or is it a bug in one of the functions?
St0rm is offline   Reply With Quote