Current location: Hot Scripts Forums » Programming Languages » Perl » Log in Password Not Working


Log in Password Not Working

Reply
  #1 (permalink)  
Old 10-12-09, 09:28 AM
sac0o01 sac0o01 is offline
Newbie Coder
 
Join Date: Jul 2009
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Log in Password Not Working

I could use a little help with a Perl script. It uses this for the log in password:

Code:
my $password = $query->param('password'); $password =~ s/"/\\"/sg; my @result;
Problem is when the password is entered it returns an "incorrect password" error. If I view the database I see that the account is there and there is a password filled in. If I make that password blank in the database and then log in with the password blank, it works.

Makes me think the problem is in the switches in the password script or that it calls for some function not supported by my perl install. Any help would be greatly appreciated as I am just a beginner coder, especially at Perl

If it helps I can post the entire script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-28-09, 12:56 AM
xhtmlcorrect xhtmlcorrect is offline
New Member
 
Join Date: Oct 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Not sure why your using
$password =~ s/"/\\"/sg;
if it is a security issue $password =~ s/\<//g; will make it safe to pass on. But I think your primary problem is
my @result;
@result is an array. Nothing I can see in your post would add $password to the array.
Try (@result) = ($password);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
password() not working karthikanov24 PHP 2 10-13-09 01:04 AM
[SOLVED] changing password not working Beylah PHP 2 08-11-08 03:37 PM
log out function not working cspgsl PHP 4 05-13-06 09:43 AM


All times are GMT -5. The time now is 06:38 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.