Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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
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"

      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.

      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.

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 pondering the Monastery: (14)
As of 2015-03-04 09:03 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (100 votes), past polls