How to force user to change password after first login

Hi, I have a system that sends a automatic password for the user, how do I force the user to change his password on the first login?