you can't. Thats the idea you can only compare it and never knowing what's the real password is.
if you are asking how to implement password reset feature, the idea is that you make the user enter a new password and update the record in the database.