What is the exact problem?
Most likely you are trying to do something that isn't possible... like send the password in an email.
It isn't possible, because it is encrypted using a one-way encryption.
The solution is to instead send the user a link to a page where they can update their password, since you can't send them their password. That should be included in the tutorial if I'm not mistaken.