A lock capable of automatically locking a door after closing includes a latch, an anti-theft latch, and a stop-latch. When the door is in an open position, the stop-latch is in an extended position to prevent the anti-theft latch from moving to an anti-theft position. When the door pivots to a closed position, the stop-latch moves to a retracted position, and the anti-theft latch moves to the anti-theft position. When the latch is moved to an unlatching position through normal operation, the anti-theft latch moves to a non-anti-theft position. Thus, the anti-theft latch will be in the anti-theft position when the door is in the closed position, and the anti-theft latch will move to the non-anti-theft position when the door is opened through normal operation.