What you describe is not even remotely legal; in fact, it may be a form of theft, and the manager could potentially face criminal liability. If you forgot your name tag, you could sent home; demoted; transferred to a different job; have your pay cut; be written up; be suspended; even be fired--but your manager may not take away your personal property.