Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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"

    sulfericacid
      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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-11-26 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (162 votes), past polls