Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Registration Error

by sutch (Curate)
on Mar 06, 2003 at 19:41 UTC ( #240976=note: print w/ replies, xml ) Need Help??

in reply to Registration Error

What type of error is being experienced?

One thing that stands out to me is:
if ($dbm1{"$accountAD"} && $dbm1{"$accountAD"} =~ /^$accountAD$/) {
The hash key, $accountAD, is being compared against the value of the hash, $dbm1{"$accountAD"}. Shouldn't $accountID be used somewhere in here?

Comment on Re: Registration Error
Download Code
Replies are listed 'Best First'.
Re: Re: Registration Error
by sulfericacid (Deacon) on Mar 06, 2003 at 19:53 UTC
    I don't get any errors at run time. Everything works except for the checking of the params against the database. No matter what link they are emailed it will say Registration Failed when they click on it.

    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

      It wouldn't give you any errors because it is valid code. The logic is wrong. $dbm1{$accountAD} contains the user's ID but you are checking to see if contains the email address.
      Have you looked at the comparison? If registration always fails, then do examine the comparision as I suggested in my original response.

      poj also notes naming inconsistencies with $ID and $accountID. That would also affect what is being compared.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://240976]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2015-11-28 21:13 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (745 votes), past polls