Gossamer Forum
Home : Products : DBMan : Customization :

A Litle Clitch in Lookup Mod?

Quote Reply
A Litle Clitch in Lookup Mod?
Hi Folks...stumbled across what appears to be a slight clitch in the Email Lookup Mod...
If you enter the correct email address all works as it is design to, but I notice if you enter only part of a valid email address it accepts it as valid..ie. say the correct address is john@smith.com...if you enter just ohn@smith.com or hn@smith.com it accepts it as john@smith.com and mails out a password....anyone got any ideas on how to fix this ....thanks Novice..
Quote Reply
Re: A Litle Clitch in Lookup Mod? In reply to
Nope...and I reported this bug in the Forum about six months ago...and even JPDeni was unable to provide a solution, and she is both the author of the Mod and a Perl/DBMAN wizard.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: [Stealth] A Litle Clitch in Lookup Mod? In reply to
was this ever corrected? i changed to the following and it seems to work:
Code:

foreach $pass (@passwds) { # Go through each pass and see if we match.
chomp ($pass);
@data2 = split /:/, $pass;
if (lc($data2[8]) eq lc($in{'email'})) { # delicia made exact match, not case-sensitive
if ($in{'userid'} ne $data2[0]) {
&html_lookup_form("The userid and email address you entered do not match.");
return;
}
elsif ($data2[7]) {
&html_lookup_form("Not authorized to lookup $in{'email'}");
return;
}
else {
$found = $pass;
}
}
else {
$output .= $pass . "\n";
}
}
if (!$found) {
&html_lookup_form ("The email address you entered was not found in the file.");
return;
}

i included a little bit of surrounding code for reference. my changes make the email address not case-sensitive, make sure the userid and email address match, and don't allow lookup for admin. i'm using extra permission, thus data[8]
Quote Reply
Re: [delicia] A Litle Clitch in Lookup Mod? In reply to
Thanks. I don't think I ever saw the question. I was away for a while. :-)


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [delicia] A Litle Clitch in Lookup Mod? In reply to
Delicia, I couldn't respond to your private message. You're not accepting private messages.


JPD
----------------------------------------------------
JPDeni's DBMan-ual
How to ask questions the smart way.
Quote Reply
Re: [JPDeni] A Litle Clitch in Lookup Mod? In reply to
thanks, i didn't know that. i've changed my settings to accept.