I moved in with a friend and now landlord is making me move in 2 days is it legal
if your friend broke any terms of the lease/rental agreement it's lucky both of you aren't being evicted. of course you quicker than your friend. but to answer the question; it's legal if you didn't sign on as a legal tenent.
If you are not on the lease, then yes, the landlord can make you move out. You aren't authorized to live there.
Are you on the lease?
Check the contract , that will tell you .