Just to be a devil's advocate here : in a hypothetical scenario wouldn't this allow a candidate to give a fake inflated salary of his past job being well aware that it's illegal for recruiter or employer to investigate if this number is true?
Edit: I think I misunderstood the new law proposed here. It is not even legal for employer to ask the salary of past job. In that case this situation would not even occur.