Re: md5() with rand() || Strange results, need help....
| From: | CF High | Date: | Fri, 14 May 2004 03:18:29 +0000 |
| Subject: | Re: md5() with rand() || Strange results, need help.... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186195@lists.php.net to get a copy of this message | ||
password field is char (32)
Strange that the usernames are all properly set to the submitted email
address, but the password is not properly updated.
Correct me if I'm wrong here, but
$plain_pass = rand(); /* plain pass should be a random # */
md5($plain_pass); /* plain pass is a random # here and not another call to
rand() */
I went ahead and created a test user account for myself -- no problem at
all. Received the login email, and logged in fine with the generated test
user username & password.
Perhaps it's a browser issue -- I am completely clueless at this point &
these hockey fanatics are filling up my admin inbox.....
--Noah
"John W. Holmes" <holmes072000@charter.net> wrote in message
news:40A42EF5.5030506@charter.net...
> CF High wrote:
>
> > If anyone has any clues as to what might be happening; i.e. why the
md5'd
> > submitted plain text password does not match the stored md5'd password,
> > please, please let me know.
>
> md5() results in a 32 character string. What kind of field are you
> storing it in?
>
> --
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> php|architect: The Magazine for PHP Professionals www.phparch.com