Re: MD5 Password Login Driving me Crazy

From: Date: Mon, 17 Feb 2003 20:00:51 +0000
Subject: Re: MD5 Password Login Driving me Crazy
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135889@lists.php.net to get a copy of this message
see the trim() function... not sure if that will solve your problem, but that's the function you're looking for. On Mon, 17 Feb 2003, Vernon wrote: > For what ever reason I cannot seem to get a user to login using MD5. The > user creates the password on log and it works fine, password encrypted and > all. I test to see if the process is working ok on creation by using the > > UPDATE penpals SET password = MD5(password) > > and the encrypted passwords match. > > When the user goes to login into the page though I have the encrypted > password echo to the page and they match except a 52 on the end of it which > I am assuming is a space or something being picked up on submit or > something. I recall there is a way to trim the field so that it doesn't pick > up spaces but can't recall what it is. Anyone know what it is and if it > could be that? > > Thanks > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#135889) next »