How to set password of a user using Apex
NOTE method The first parameter of that function call is the actual id of the user object. User Ids start with 005 and are 15 or 18 characters long and second parameter is password string. Complex password generation TIPS