Skip to content

Commit

Permalink
EZP-29021: User cannot login using PASSWORD_HASH_MD5_PASSWORD (ezsyst…
Browse files Browse the repository at this point in the history
  • Loading branch information
pkamps authored Jul 1, 2018
1 parent 50bfaf9 commit e873cc9
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 e873cc9

Please sign in to comment.