Although most states require a 4 year undergrad degree, California is one state where law schools can accept students with only a two year undergrad degree. California is also one of the few states which allow students with an online law degree to take the Bar exam and to practice law. A lawyer who has practiced for a number of years is then usually allowed to take the Bar and practice in other states.California is also one of the states which allow 'law reader' education (sans law school) as a registered apprentice. After three or four years of working and studying at a law office or judge's chamber, the apprentice may take the Bar exam and practice law.
Unlike the previous poster, I don't think that a lawyer from a non-accredited school can work in government. There are many qualified people who seek out those jobs.