encrypted password mismatch!

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
xyelox
Regular
Posts: 6
Joined: Thu Feb 18, 2010 1:43 am

encrypted password mismatch!

Post by xyelox »

I have download the forgotpassword plugin. The problem is that after a user enter desired password on the confirmation link, it stated that the password successfully changed.

But when i login using the new password the system said that i entered an invalid userame or password.
and when i checked at the database, the password 'pass' (without quotes) appear as 1a1dc91c907325c69271ddf0c944bc72 while the other user with 'pass' as the password can login (in database appear as c35ec367e2d81189e7856e2f0486951bf8e1847f)

when i use md5 to decrypt the password, 1a1dc91c907325c69271ddf0c944bc72 turns into 'pass' and it fails to decrypt c35ec367e2d81189e7856e2f0486951bf8e1847f!!

what is wrong here? I'm quite new in php and I know nothing much. Hope you can help!
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: encrypted password mismatch!

Post by Don Chambers »

What version of serendipity?
=Don=
xyelox
Regular
Posts: 6
Joined: Thu Feb 18, 2010 1:43 am

Re: encrypted password mismatch!

Post by xyelox »

its 1.5.1
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: encrypted password mismatch!

Post by garvinhicking »

Hi!

Thanks a lot for brining this to our attention! Serendipity 1.5 changed the way we hash passwords fmro md5 to salted sha1. It seems the forgotpassword plugin was not adapted for compatibility to this new hash method.

I just upgraded the plugin to version 0.10 which should appear soon on spartacus. If you want to try it out earlier, you can download the current version of that file here:

http://php-blog.cvs.sourceforge.net/vie ... ision=1.14

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
xyelox
Regular
Posts: 6
Joined: Thu Feb 18, 2010 1:43 am

Re: encrypted password mismatch!

Post by xyelox »

wow! thanx guys!! it works! thanks alot.. :)
Post Reply