Matching logins to an old htpasswd file
| From: | Ryan A | Date: | Sat, 03 Mar 2007 14:53:44 +0000 |
| Subject: | Matching logins to an old htpasswd file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-249774@lists.php.net to get a copy of this message | ||
Hey,
I have a old htpasswd file with a lot of logins in this format:
test:dGRkPurkuWmW2 (test:test)
test1:dGlAW3zdxeAG2 (test1:test1)
now I have a login form what takes a POST "user" and a POST "pw"... but if you
look at my above first example login.. the username and pass are "test:test" but it gets
encoded into "test:dGRkPurkuWmW2" so how do I try to match the data I get from the POST
"pw" field when that will come in as normal text?
Any example code, links (even a RTFM+URL) would be appreciated.
Thanks!
Ryan
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
---------------------------------
Don't get soaked. Take a quick peak at the forecast
with theYahoo! Search weather shortcut.