? Success

User tests: Successful: Unsuccessful:

avatar colivier
colivier
18 Nov 2013

The getCryptedPassword gives the salt value in the result if the encryption is sha256 or if the encryption is bcrypt (default value) and the use of strong encryption is set.

So in the processResetComplete function, if the code is :

$password = $crypted . ':' . $salt;

The salt value is set a second time when the encryption is sha256 or bcrypt and the user cannot connect with his new password. A simple solution is replace the line above by this line :

$password = (strpos($crypted, ':') > 0) ? $crypted : $crypted . ':' .$salt;

The processResetComplete function should be also set de the encryption param for the getCryptedPassword function.

avatar colivier colivier - open - 18 Nov 2013
avatar Hackwar
Hackwar - comment - 5 Dec 2013

Thank you for your contribution. Since there were more issues with the bcrypt implementation, we have a much bigger PR that fixes this and other issues. See #2589 I would be very happy if you could help test this one.

Since #2589 superseeds this PR, I'd like to ask to close this one.

avatar mbabker mbabker - change - 5 Dec 2013
Status New Closed
Closed_Date 0000-00-00 00:00:00 2013-12-05 19:10:10
avatar mbabker mbabker - close - 5 Dec 2013
avatar colivier
colivier - comment - 6 Dec 2013

Hi Hannes,

Thank you for your trust, and of course I will test the PR.

Add a Comment

Login with GitHub to post a comment