Is it illegal to scan code and fill in identity information?

Legal analysis: According to the provisions of the Personal Information Protection Law, it is illegal to fill in identity information unless the individual expressly agrees voluntarily.

Legal basis: Article 14 of the Law on the Protection of Personal Information deals with personal information on the basis of personal consent, which should be made voluntarily and explicitly by individuals on the premise of full knowledge. Where laws and administrative regulations stipulate that personal consent or written consent shall be obtained for the handling of personal information, such provisions shall prevail. If the purpose, method and type of personal information change, personal consent shall be obtained again.