In addition to what @SaqibHussain said, I would add “don’t do this”. Forcing users to reset their password this way is an anti pattern. It probably means you sent them a clear text password via email, which is an insecure thing to do.
Instead, you should send them a password reset link, so they set their own password.
I followed the steps you sent me and It worked ! Thanks a lot for your help and your time.
Also, thanks a lot @john.gateley for your advice, I took it in consideration and it will be safer to use a password reset link instead of a clear text password.