By creating a plaintext dotfile in $HOME, I'd reckon. Minimum effort, gets the job done. Users can lie when setting up the account so protecting the file against tampering is pointless.
But more likely, not a single distro will implement anything by default because it doesn't make sense to change your internationally-distributed OS because one state in one country passed a stupid law.