Skip to content

Commit

Permalink
Fix regression which broke PASSWORD_HASH_MD5_PASSWORD (#1354)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0ffed7d)
  • Loading branch information
glye authored and andrerom committed Jun 29, 2018
1 parent e251452 commit d626ecc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/classes/datatypes/ezuser/ezuser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1812,7 +1812,11 @@ static function createHash( $user, $password, $site, $type, $hash = false )
$password = self::trimAuthString( $password );

$str = '';
if( $type == self::PASSWORD_HASH_MD5_USER )
if ( $type == self::PASSWORD_HASH_MD5_PASSWORD )
{
$str = md5( $password );
}
else if ( $type == self::PASSWORD_HASH_MD5_USER )
{
$str = md5( "$user\n$password" );
}
Expand Down

0 comments on commit d626ecc

Please sign in to comment.