diff --git a/kernel/classes/datatypes/ezuser/ezuser.php b/kernel/classes/datatypes/ezuser/ezuser.php index 7f1b64b25b9..39bbaebe6fc 100644 --- a/kernel/classes/datatypes/ezuser/ezuser.php +++ b/kernel/classes/datatypes/ezuser/ezuser.php @@ -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" ); }