note 19907 deleted from function.crypt by nlopess
| From: | nlopess@php.net | Date: | Sat, 03 Jan 2004 16:38:13 +0000 |
| Subject: | note 19907 deleted from function.crypt by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62868@lists.php.net to get a copy of this message | ||
Note Submitter: gdymarskiy[AT]i-dep[DOT]com
----
I had to trim both user supplied password and crypt()ed string in order for comparison to work
properly.
if (trim(crypt($user_input,$password)) == trim($password)) {
echo "Password verified!";
}