Actually it’s not that hard for companies to get salary information about new hires. Equifax has a tool called the Work Number that lots of employers subscribe to. Each report lists every company an employee worked for, total salary, and every paycheck dollar value they received. You can request your report for free.
So yeah, now employees looking for a salary boost can’t even lie about their current salary anymore.