[Opensim-users] Creating Users with PHP
Ursula MATOVA
ursula.matova at klintcentral.net
Sun Jan 27 17:03:00 UTC 2008
Hi All,
Well, I have started to build a small website to manage my Users on
OpenSim, using Apache/PHP/MySQL ...
But I have a little problem understanding how the user password is
encoded in MySQL database ...
If I refer to the share/php/generateUserFunction.php provided file,
the formula is :
$user['passwordSalt'] = md5(microtime() . mt_rand(0,0xffff));
$user['passwordHash'] = md5(md5($password) . ":" .
$user['passwordSalt']);
But the resulted password doesn't work for me :S
When I create the "Test User" user using the Console command : create
user, the generated password is something like :
84e78b596fa8e391c49f3c4df7b9c57f
So, could somebody explain the method to generate user passwords
"outside" the console ?
Now we also have the webLoginKey introduced ... What is the methode to
generate it ?
Many thanks in advance,
Regards,
Ursula.
More information about the Opensim-users
mailing list