Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
In this sectionsub change_pass { $pass = crypt($q->param('old'), r); if($q->param('old') ne $q->param('reold')) { inerror("Your old passwords don't match"); } elsif($pass ne $user{'pass'}) { print "$pass<br>$user{'pass'}"; inerror("Your old passwords don't match current password"); } else { $newpass = crypt($q->param('new'), r); print "Your password has been chaged"; } }
For some reason if the password do match it gives me that error, I really dont see whats wrong. I even checked with...elsif($pass ne $user{'pass'}) { print "$pass<br>$user{'pass'}"; inerror("Your old passwords don't match current password"); }
...and they were the same.print "$pass<br>$user{'pass'}";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: elsif ne loop
by Zaxo (Archbishop) on Jun 26, 2002 at 04:13 UTC | |
|
Re: elsif ne loop
by graff (Chancellor) on Jun 26, 2002 at 04:14 UTC | |
|
Re: elsif ne loop
by bronto (Priest) on Jun 26, 2002 at 07:50 UTC | |
|
Re: elsif ne loop
by screamingeagle (Curate) on Jun 26, 2002 at 04:55 UTC |