Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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?

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (8)
As of 2018-06-22 00:14 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (120 votes). Check out past polls.