Hi,
Are you trying to modify Imagefolio to authenticate off Gossamer Forum or modify Gossamer Forum to authenticate off Image Folio?
I'm assuming the first. Basic steps would be:
1. Select from the database the user_password where Username = 'Foo'
2. Compare the input with the database with:
require GT::MD5::Crypt;
$password_good = ($db_encrypted eq GT::MD5::Crypt::gt_md5_crypt($form_cleartext, $db_encrypted));
3. If password_good is true, then it's the right password, if not, then it's wrong.
Hope that helps,
Alex
--
Gossamer Threads Inc.
Are you trying to modify Imagefolio to authenticate off Gossamer Forum or modify Gossamer Forum to authenticate off Image Folio?
I'm assuming the first. Basic steps would be:
1. Select from the database the user_password where Username = 'Foo'
2. Compare the input with the database with:
require GT::MD5::Crypt;
$password_good = ($db_encrypted eq GT::MD5::Crypt::gt_md5_crypt($form_cleartext, $db_encrypted));
3. If password_good is true, then it's the right password, if not, then it's wrong.
Hope that helps,
Alex
--
Gossamer Threads Inc.