Student spends $1.3 million that was not his, thanks to bank glitch

File image.

A student lived like a king for two years, spending $1.3 million that was not his because of a bank glitch.

The New York Post reports that Luke Moore, 29, opened a "Complete Freedom" bank account in Australia that allowed him to take out cash, even if he did not have any money in his account.

The Daily Mail reports that no matter how much he took out, the bank never stopped him.

He went on withdrawing money, traveling the world, buying cocaine and hiring strippers for two years.

Eventually, the law did catch up with him and he was sentenced for four years in jail. But last week, a court ruled that his actions were not deceptive and he was released.

He is now living with his mom and studying to be a lawyer.