Gossamer Forum
Home : Products : DBMan : Customization :

Fix to secure password lookup mod

Quote Reply
Fix to secure password lookup mod
Hi guys. I guess I'm back. Smile

I guess folks have been having problem with the "change password" part of the secure password lookup mod. I'm not sure what happened, but it seems I left out a rather important line.

If you want to, you can just go to my site at http://www.jpdeni.com/...ds/secure_lookup.txt and copy the revised sub change_password. Or you can make the change below:

After

Code:
if ($userid eq $db_userid) {
$found = $pass;
unless (crypt($in{'old'}, $pw) eq $pw) {
$message = "old password is incorrect";
}
}

add

Code:
else {
$output .= $pass . "\n";
}

Sorry 'bout that.



------------------
JPD