The bill (AB1844), which was introduced in late February, passed the House unanimously (73 votes to 0). Now it moves onto the Senate.
AB1844 would ban employers from requiring current or prospective employees to disclose usernames or passwords for social networks such as Facebook and Twitter. The bill's author, Democratic Assemblymember Nora Campos of San Jose, says there are too few social media privacy laws to protect employees.
"I am proud to have received this overwhelming show of support for the protection of our privacy rights," Campos said in a statement. "I look forward to working with the Senate and the Governor to ensure that this bill is enacted into law."
In addition to Maryland and California, similar measures are pending in many other states, including Illinois and Michigan. Furthermore, lawmakers in the House and Senate are also working on legislation that would ban the practice nationally.