Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Can't Login anymore - crypt_private returning 34 characters

edited May 2009 in Vanilla 1.0 Help
I don't know how or why this happened, but with vanilla 1.1.7 I can no longer login. I traced the problem to People.Class.PasswordHash.php and the function cript_private() which appeared to return a 34 character hashed password whereas the mysql database holds a 32 character one.

I've temporarily fixed this issue by changing the return of this function to:

return substr($output,0,32);

Comments

  • Options
    It will work, but you should have done it the other way. Change the password field to 34 characters in the user table.
  • Options
    Actually, doing it my way is a BAD IDEA. Just change the password field in the database to 34 characters as Dinoboff said.
  • Options
    At the time, I figured out how the database update got rolled-back (there might be a post about it)... But I forgot. Here is the fix anyway if you are upgrading from 1.1.4: http://lussumo.com/community/?CommentID=90712
Sign In or Register to comment.