You can surf on the web and find the government employment agency which handles the disputes
between the employers and employees. I am pretty sure they will tell you whether this is illegal. If it is illegal, you will get all the money you should have. You could deal with this situation by yourself.