Sounds like an unpaid nightshift to me, not on in my books. Don't know what the legalities of it are, probably depends on your contract... In any case if you don't get time to rest in between day shifts and night shifts then that's dangerous so I'd have thought it shouldn't be allowed regardless of what your contract says.